hello

i need help using text object in vba and how to define text object properties in vba

thanks in advane



Text Properties


Attribute - See Attributes
BaseLine - (Path) The base-line for the text if it has one (read-only)
Bold - (boolean) True if the text is bold, if TrueType font used
CharacterWidthScale - (double) Scale factor in X direction
Drawing - (Drawing) The drawing for this text if it is in the main drawing then the existing drawing object will be returned otherwise a temporary one will be created (read-only)
Font - (String) Font name for text. Starts with A for Alphacam font eg AStencil, or T for TrueType font eg TArial
Group - (short) Number of group containing this text, 0 if none
Height - (double) Height of text
Italic - (boolean) True if the text is italic
ItalicAngle - (short) Slant angle for italic text
Justify - (AcamJustifyType) How the text is justified relative to the location point or base-line.acamJustifyCENTER, acamJustifyLEFT, acamJustifyRIGHT or acamJustifySCALED
Lines - (TextLines) The lines of text in the text object
LineSpacing - (double) Line spacing as a multiple of the height
LocationX - (double) X coordinate of base-point of text
LocationY - (double) Y coordinate of base-point of text
MaxXL -(double) Maximum X Local coordinate (read-only)
MaxYL - (double) Maximum Y Local coordinate (read-only)
MinXL - (double) Minimum X Local coordinate (read-only)
MinYL - (double) Minimum Y Local coordinate (read-only)
Reverse - (boolean) True if the text is reversed
Rotation - (double) Rotation of text
Selected - (boolean) True if text is selected
SpaceWidth - (double) Width of a space
Visible - (boolean) True if text is marked as visible (not hidden)
Spacing - (double) Character spacing as a multiple of the height