TextBox Object


Description

The TextBox object represents text on a sheet or sketch.

Methods

Name Description
ConvertToGeometry Method that converts the text box to sketch geometries.
Delete Method that deletes the text box.
GetFacetsInfo Returns facets’ coordinates of the text box.
GetReferenceKey Method that generates and returns the reference key for this entity.

Properties

Name Description
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.
AttributeSets Property that returns the AttributeSets collection object associated with this object.
BackgroundColor
BoundaryGeometry Property that returns the four construction sketch lines that form the boundary of the text box.
Color
ContainingSketchBlock Property that returns the sketch block that contains this object. This is the same SketchBlock returned as the last item in the SketchBlockPath property. This property returns Nothing if this object does not belong to a sketch block and lives directly under a sketch.
Fitted Property that returns if the text box remains tightly fitted to the text within the box. True indicates the text box just encloses the text.
FittedTextHeight Property that returns the actual height of the text within the text box. This does not necessarily represent the current height of the text box, but only the text within the box. If the Fitted property is True then this value is the same as the height of the text box.
FittedTextWidth Property that returns the actual width of the text within the text box. This does not necessarily represent the current width of the text box, but only the text within the box. If the Fitted property is True then this value is the same as the width of the text box.
FormattedText
Height
HorizontalJustification
Layer
LineSpacing
LineSpacingType
Origin
OriginSketchPoint Gets the SketchPoint on the origin of this TextBox. This will be Nothing in the case that the boundaries are displayed
Parent Property that returns the parent object from whom this object can logically be reached.
RangeBox Property that returns a Box2D object which contains the lower-left and upper-right corners of a rectangle that is guaranteed to enclose this object.
Rotation
ShowBoundaries
SingleLineText
SketchBlockPath Property that returns the path of sketch blocks at the leaf of which this sketch object is found. The enumerator returns a count of 0 if the object lives directly under a sketch.
StackedTextPosition
Style
Text
Type Returns an ObjectTypeEnum indicating this object's type.
UseBackgroundColor
VerticalJustification
Width
WidthScale

Accessed From

ProfilePath.TextBox, ProfilePathProxy.TextBox, TextBoxConstraint.TextBox, TextBoxConstraintProxy.TextBox, TextBoxes.AddByRectangle, TextBoxes.AddFitted, TextBoxes.Item, TextBoxProxy.NativeObject

Derived Classes

TextBoxProxy

Samples

Name Description
Create SketchedSymbol Definition This sample illustrates creating a new sketched symbol definition object and inserting it into the active sheet.
Sketch Text Add This sample illustrates creating text in a sketch.
Title Block Definition Create and Insert This sample illustrates creating a new title block definition object and inserting it into the active sheet. This sample consists of two subs. The first demonstrates the creation of a title block definition and the second inserts it into the active sheet.

Version

Introduced in version 5.3