TextGraphics Object
Derived from:
GraphicsPrimitive Object
Description
The TextGraphics object defines a set of text strings that are displayed within the model. Each coordinate provided defines a new TextGraphics object. For each coordinate you must also provide a text string.
Methods
Delete |
Method that deletes the graphics primitive. |
GetTextColor |
Method that gets the color of the text. |
GetTransformBehavior |
Returns the current view transformation settings (e.g. pixel scaling and front facing). |
GetViewSpaceAnchor |
Method that gets the anchor information of the graphics object. This method returns an error if the 'Anchored' property returns False. |
PutTextColor |
Method that sets the color of the text. |
RemoveViewSpaceAnchor |
The RemoveViewSpaceAnchor method removes the view space anchor from the object, and sets the Anchored property to false. |
SetTransformBehavior |
Sets the view transformation settings (e.g. pixel scaling and front facing). |
SetViewSpaceAnchor |
Method that anchors the graphics object at the specified point in view space. The Anchored property is set to True. |
Properties
Anchor |
Gets and sets the position of the text. |
Anchored |
Property that indicates whether this graphics primitive is anchored in view space. This property can only be set to False. The Anchored property is automatically set to True by the SetViewSpaceAnchor method. |
Application |
Returns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned. |
Bold |
Gets and sets whether the text has bold formatting or not. |
BurnThrough |
Read-write property that specifies whether or not graphics are always visible even if they are blocked by other objects. |
DepthPriority |
Read-write property that allows you to specify a priority for a set. |
Font |
Gets and sets the font used for the text. |
FontSize |
Gets/sets the font size. The font size is defined in pixels for non-scalable text graphics objects. It is defined in model space units for scalable text graphics objects. |
HorizontalAlignment |
Read-write property that allows you to specify the horizontal justification of the text with respect to the coordinate point for the text. |
Id |
Read-only property that returns the Id of the object. |
Italic |
Gets and sets whether the text has italic formatting or not. |
Parent |
Property that returns the parent object from whom this object can logically be reached. |
RangeBox |
Property that returns a Box object which contains the opposing points of a rectangular box that is guaranteed to enclose this object. |
Scalable |
Property that returns whether the TextGraphics object is scalable. If True, the FontSize property can be set a double value indicating its size in model space units. |
Text |
Gets and sets the text displayed for the TextGraphics object. |
Type |
Returns an ObjectTypeEnum indicating this object's type. |
VerticalAlignment |
Read-write property that allows you to specify the vertical justification of the text with respect to the coordinate point for the text. |
Accessed From
GraphicsNode.AddScalableTextGraphics,
GraphicsNode.AddTextGraphics,
GraphicsNodeProxy.AddScalableTextGraphics,
GraphicsNodeProxy.AddTextGraphics
Samples
Version
Introduced in version 5