Hide menu
Loading...
Searching...
No Matches

Defines a component represented by text. More...

Inheritance diagram for cadex.PMI.TextComponent:
cadex.PMI.GraphicalComponent cadex.BaseObject

Public Member Functions

 TextComponent (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 TextComponent ()
 Constructor.
 
 TextComponent (cadex.UTF16String theText)
 Constructor.
 
void SetText (cadex.UTF16String theText)
 Sets the text component.
 
cadex.UTF16String Text ()
 Returns the text component.
 
void SetTextOrigin (cadex.Geom.Point2d theTextOrigin)
 Sets the text origin;.
 
cadex.Geom.Point2d TextOrigin ()
 Returns the position of the text on the 2D plane.
 
void SetTextDirection (cadex.Geom.Direction2d theTextDirection)
 Sets the text direction;.
 
cadex.Geom.Direction2d TextDirection ()
 Returns the direction of the text on the 2D plane.
 
void SetFontSize (float theFontSize)
 Sets the front size.
 
float FontSize ()
 Returns the size of the font.
 
- Public Member Functions inherited from cadex.PMI.GraphicalComponent
 GraphicalComponent (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Accept (cadex.PMI.GraphicalComponentVisitor theVisitor)
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static new bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has the TextComponent type.
 
- Static Public Member Functions inherited from cadex.PMI.GraphicalComponent
static bool CompareType (cadex.BaseObject theObject)
 Returns true if theObject has GraphicalComponent type.
 
static cadex.PMI.GraphicalComponent Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

Detailed Description

Defines a component represented by text.

The component stores PMI graphical data expressed by a string.

The component contains a text and outline. An outline is optional.

The elements of a component are defined by coordinates in the plane of its parent graphical element.

See also
GraphicalRepresentation
Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.

Member Function Documentation

◆ Dispose()

override void cadex.PMI.TextComponent.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.PMI.GraphicalComponent.

◆ FontSize()

float cadex.PMI.TextComponent.FontSize ( )
inline

Returns the size of the font.

Returns 16 by default or 0 if IsNull().

◆ TextDirection()

cadex.Geom.Direction2d cadex.PMI.TextComponent.TextDirection ( )
inline

Returns the direction of the text on the 2D plane.

Default value is (1, 0), X Direction of the plane.