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 ()
 Default value is (1, 0), X Direction of the plane.
 
void SetFontSize (float theFontSize)
 Sets the front size.
 
float FontSize ()
 Returns 16 by default or 0 if IsNull().
 
- 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.

Constructor & Destructor Documentation

◆ TextComponent() [1/2]

cadex.PMI.TextComponent.TextComponent ( )
inline

Constructor.

◆ TextComponent() [2/2]

cadex.PMI.TextComponent.TextComponent ( cadex.UTF16String theText)
inline

Constructor.

Member Function Documentation

◆ CompareType()

static new bool cadex.PMI.TextComponent.CompareType ( cadex.BaseObject theObject)
inlinestatic

Returns true if theObject has the TextComponent type.

◆ Dispose()

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

Reimplemented from cadex.PMI.GraphicalComponent.

◆ FontSize()

float cadex.PMI.TextComponent.FontSize ( )
inline

Returns 16 by default or 0 if IsNull().

Returns the size of the font.

◆ SetFontSize()

void cadex.PMI.TextComponent.SetFontSize ( float theFontSize)
inline

Sets the front size.

◆ SetText()

void cadex.PMI.TextComponent.SetText ( cadex.UTF16String theText)
inline

Sets the text component.

◆ SetTextDirection()

void cadex.PMI.TextComponent.SetTextDirection ( cadex.Geom.Direction2d theTextDirection)
inline

Sets the text direction;.

◆ SetTextOrigin()

void cadex.PMI.TextComponent.SetTextOrigin ( cadex.Geom.Point2d theTextOrigin)
inline

Sets the text origin;.

◆ Text()

cadex.UTF16String cadex.PMI.TextComponent.Text ( )
inline

Returns the text component.

Examples
exploring/pmi/Program.cs, and exploring/pmi/main.cxx.

◆ TextDirection()

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

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

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

◆ TextOrigin()

cadex.Geom.Point2d cadex.PMI.TextComponent.TextOrigin ( )
inline

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