MText
Multi-line text drawing primitive.
Create a MText: VB
Public Fields
LastUsedFont static |
System.String | |
LastUsedHeight static |
System.Double | |
P2 |
Point3F This point is not currently used. The intention is to use it to define alignment options that evenly spread the text between two points, or perhaps as an alernative to the Rotate option. |
Properties
Bold |
System.Boolean |
|
CADFile readonly |
CADFile |
|
CanConvertToPolylines readonly |
System.Boolean |
|
CharSpace |
System.Double |
|
Font |
System.String |
|
Height |
System.Double |
|
ID |
System.Int32 |
|
Italic |
System.Boolean |
|
Layer readonly |
Layer |
|
LineSpace |
System.Double |
|
Location |
System.String |
|
Location2 |
System.String |
|
P1 |
Point3F |
|
Parent |
System.Object |
|
PrimitiveType readonly |
System.String |
|
Regular |
System.Boolean |
|
Strikeout |
System.Boolean |
|
Style |
System.String |
|
Tag |
System.String |
|
Text |
System.String |
|
TextAlignment |
System.String |
|
TextAlignmentH |
CamBam.CAD.TextAlignmentH |
|
TextAlignmentV |
CamBam.CAD.TextAlignmentV |
|
Transform |
CamBam.Geom.Matrix4x4F |
|
Underline |
System.Boolean |
Methods
ApplyTransformation |
Boolean ApplyTransformation (Matrix4x4F xm) Multiply the points in the object by a transformation matrix. |
|
Clone |
Entity Clone () | |
CloneFrom |
Void CloneFrom (Entity src) | |
ConvertToPolylines |
Polyline[] ConvertToPolylines (Boolean apply_transformations) | |
GetExtents |
Void GetExtents (PointF& min, PointF& max) Find the extrema points of this primitive. Parameters: min: A point that will receive the minimum coordinates. max: A point that will receive the maximum coordinates. |
|
GetExtrema |
Void GetExtrema (Point3F& min, Point3F& max) Find the extrema points of this primitive. Parameters: min: A point that will receive the minimum coordinates. max: A point that will receive the maximum coordinates. |
|
GetScreenExtents |
Void GetScreenExtents (PointF& min, PointF& max, Matrix4x4F xm) | |
Paint |
Void Paint (Display3D d3d) | |
PointIntersect |
Boolean PointIntersect (Point2F p, Matrix4x4F xm, Double tolerance) Returns true if a point will intersect part of the primitive. Used for mouse hit testing. Parameters: p: The test point. xm: Transformation matrix. tolerance: How close the point must be to be considered a hit. Returns: |
|
ToPolylineArray |
Polyline[] ToPolylineArray () Converts the text to an array of Polylines. At the moment, curves are converted to a series of straight line segments. Parameters: CurveSteps: Used to render curves to straight line segments. Returns: An array of Polylines |
|
ToRegions |
Region[] ToRegions () | |
Update |
Void Update () Instructs the primitive to refresh any internal data if the the object has changed. |