Share

MText.MText Constructor

Description

The constructor creates a default, empty object. The default values are:

location0.0,0.0,0.0
normal(0.0,0.0,1.0)
direction(1.0,0.0,0.0)
width0.0
textStyleNULL
textHeight0.0
attachmentAcDbMText::kTopLeft
flowDirectionAcDbMText::kByStyle
contentsNULL

In order to be useful, you must call the TextStyle and Contents member properties with appropriate values. Other member properties may be used to further modify the object, but are not required before the object can be added to an Database.

C#

public MText();

Visual Basic

Public Sub New()

Links

MText Class, Autodesk.AutoCAD.DatabaseServices Namespace

Was this information helpful?