Show / Hide Table of Contents

Class Text

Simple Text object, Implements IGeoObject.

Inheritance
System.Object
IGeoObjectImpl
Text
Implements
IGeoObject
ILayer
IStyle
IOctTreeInsertable
System.IComparable
IFeedBack
System.ICloneable
IColorDef
System.Runtime.Serialization.ISerializable
IJsonSerialize
Inherited Members
IGeoObjectImpl.isChanging
IGeoObjectImpl.MakeChange(IGeoObjectImpl, String)
IGeoObjectImpl.SetSerializationValue(String, Object)
IGeoObjectImpl.UniqueId
IGeoObjectImpl.WillChangeEvent
IGeoObjectImpl.DidChangeEvent
IGeoObjectImpl.FeedBackChangedEvent
IGeoObjectImpl.FireWillChange(GeoObjectChange)
IGeoObjectImpl.FireDidChange(GeoObjectChange)
IGeoObjectImpl.ModifyInverse(ModOp)
IGeoObjectImpl.HasChildren()
IGeoObjectImpl.NumChildren
IGeoObjectImpl.Child(Int32)
IGeoObjectImpl.Owner
IGeoObjectImpl.IsAttributeUsed(Object)
IGeoObjectImpl.AttributeChanged(INamedAttribute)
IGeoObjectImpl.CopyAttributes(IGeoObject)
IGeoObjectImpl.Attributes
IGeoObjectImpl.CustomAttributeKeys
IGeoObjectImpl.SetNamedAttribute(String, INamedAttribute)
IGeoObjectImpl.GetNamedAttribute(String)
IGeoObjectImpl.UpdateAttributes(IAttributeListContainer)
IGeoObjectImpl.UserData
IGeoObjectImpl.isModifyingWithMouse
IGeoObjectImpl.ModifyWithMouse(Object, String, Boolean)
IGeoObjectImpl.FindSnapPoint(SnapPointFinder)
IGeoObjectImpl.HasValidData()
IGeoObjectImpl.Description
IGeoObjectImpl.OwnedItems
IGeoObjectImpl.IsVisible
IGeoObjectImpl.PropagateAttributes(Layer, ColorDef)
IGeoObjectImpl.Decompose()
IGeoObjectImpl.Actuator
IGeoObjectImpl.SetColorDef(ColorDef, ColorDef)
IGeoObjectImpl.Layer
IGeoObjectImpl.Style
IGeoObjectImpl.StyleIsValid
IGeoObjectImpl.GetExtent(IGeoObject, Projection, Boolean)
IGeoObjectImpl.IsOwnedByBlockRef(IGeoObject)
IGeoObjectImpl.ChangingUserData(IGeoObject, String, Object)
IGeoObjectImpl.ChangingUserData(IGeoObject, String, Object, Boolean)
IGeoObjectImpl.ICloneable.Clone()
IGeoObjectImpl.IComparable.CompareTo(Object)
IGeoObjectImpl.GetAdditionalContextMenueEvent
IGeoObjectImpl.IFeedBack.GetExtent()
IGeoObjectImpl.JsonGetObjectData(IJsonWriteData)
IGeoObjectImpl.JsonSetObjectData(IJsonReadData)
IGeoObjectImpl.JsonSerializationDone()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability.GeoObject
Assembly: CADability.dll
Syntax
[Serializable]
public class Text : IGeoObjectImpl, IGeoObject, ILayer, IStyle, IOctTreeInsertable, IComparable, IFeedBack, ICloneable, IColorDef, ISerializable, IJsonSerialize

Constructors

| Improve this Doc View Source

Text()

Declaration
protected Text()
| Improve this Doc View Source

Text(SerializationInfo, StreamingContext)

Constructor required by deserialization

Declaration
protected Text(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

SerializationInfo

System.Runtime.Serialization.StreamingContext context

StreamingContext

Fields

| Improve this Doc View Source

Constructor

Declaration
public static Text.ConstructionDelegate Constructor
Field Value
Type Description
Text.ConstructionDelegate
| Improve this Doc View Source

OnPaintTo3D

Declaration
public static Text.PaintTo3DDelegate OnPaintTo3D
Field Value
Type Description
Text.PaintTo3DDelegate

Properties

| Improve this Doc View Source

Alignment

Sets or gets the horizontal (or in direction of LineDirection) alignement of the text.

Declaration
public Text.AlignMode Alignment { get; set; }
Property Value
Type Description
Text.AlignMode
| Improve this Doc View Source

Bold

Gets or sets the bold property of the text font.

Declaration
public bool Bold { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ColorDef

Declaration
public ColorDef ColorDef { get; set; }
Property Value
Type Description
ColorDef
| Improve this Doc View Source

Font

Gets or sets the font used for this text object

Declaration
public string Font { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

GlyphAngle

Gets or sets the angle of the characters vertical direction in respect to the horizontal direction. The default value is 90°, different angles create different italic fonts.

Declaration
public Angle GlyphAngle { get; set; }
Property Value
Type Description
Angle
| Improve this Doc View Source

GlyphDirection

Gets or sets the direction of the vertical character parts. This direction is usually perpendicular to the LineDirection, but can be modified to produce italic characters of any angle. The Italic property in contrary uses the typefont italic capabilities which are more sophisticated.

Declaration
public GeoVector GlyphDirection { get; set; }
Property Value
Type Description
GeoVector
| Improve this Doc View Source

GlyphDirectionKeepSize

Declaration
public GeoVector GlyphDirectionKeepSize { get; set; }
Property Value
Type Description
GeoVector
| Improve this Doc View Source

Italic

Gets or sets the italic property of the text font.

Declaration
public bool Italic { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

LineAlignment

Sets or gets the vertical alignement of the text.

Declaration
public Text.LineAlignMode LineAlignment { get; set; }
Property Value
Type Description
Text.LineAlignMode
| Improve this Doc View Source

LineDirection

Gets or sets the line direction of the text. Default is XAxis. Setting the line direction does not modify the GlyphDirection of the text, so you usually will have to change both. It also affects the aspect ratio of the text, which is defined by the length of the line direction and the length of the glyph direction. To simply rotate a text better use Modify(ModOp) with a CADability.ModOp.Rotate(System.Int32,CADability.SweepAngle) rotation.

Declaration
public GeoVector LineDirection { get; set; }
Property Value
Type Description
GeoVector
| Improve this Doc View Source

Location

Gets or sets the location of the text. The value of this point is interpreted according to the values of the Alignmentand LineAlignment properties.

Declaration
public GeoPoint Location { get; set; }
Property Value
Type Description
GeoPoint
| Improve this Doc View Source

PreferredStyle

Declaration
public override Style.EDefaultFor PreferredStyle { get; }
Property Value
Type Description
Style.EDefaultFor
Overrides
IGeoObjectImpl.PreferredStyle
| Improve this Doc View Source

Strikeout

Gets or sets the strikeout property of the text font.

Declaration
public bool Strikeout { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

TextSize

Gets or sets the size of this text object.

Declaration
public double TextSize { get; set; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

TextString

Gets or sets the text string that is displayed with this object.

Declaration
public string TextString { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Underline

Gets or sets the underline property of the text font.

Declaration
public bool Underline { get; set; }
Property Value
Type Description
System.Boolean

Methods

| Improve this Doc View Source

Clone()

Overrides Clone()

Declaration
public override IGeoObject Clone()
Returns
Type Description
IGeoObject
Overrides
IGeoObjectImpl.Clone()
| Improve this Doc View Source

Construct()

Declaration
public static Text Construct()
Returns
Type Description
Text
| Improve this Doc View Source

CopyGeometry(IGeoObject)

Overrides CopyGeometry(IGeoObject)

Declaration
public override void CopyGeometry(IGeoObject ToCopyFrom)
Parameters
Type Name Description
IGeoObject ToCopyFrom
Overrides
IGeoObjectImpl.CopyGeometry(IGeoObject)
| Improve this Doc View Source

GetAttributeProperties(IFrame)

Overrides GetAttributeProperties(IFrame)

Declaration
public override IShowProperty[] GetAttributeProperties(IFrame Frame)
Parameters
Type Name Description
IFrame Frame
Returns
Type Description
IShowProperty[]
Overrides
IGeoObjectImpl.GetAttributeProperties(IFrame)
| Improve this Doc View Source

GetBoundingCube()

Overrides GetBoundingCube()

Declaration
public override BoundingCube GetBoundingCube()
Returns
Type Description
BoundingCube
Overrides
IGeoObjectImpl.GetBoundingCube()
| Improve this Doc View Source

GetCenterline()

Declaration
public virtual GeoObjectList GetCenterline()
Returns
Type Description
GeoObjectList
| Improve this Doc View Source

GetExtent(Projection, ExtentPrecision)

Overrides GetExtent(Projection, ExtentPrecision)

Declaration
public override BoundingRect GetExtent(Projection projection, ExtentPrecision extentPrecision)
Parameters
Type Name Description
Projection projection
ExtentPrecision extentPrecision
Returns
Type Description
BoundingRect
Overrides
IGeoObjectImpl.GetExtent(Projection, ExtentPrecision)
| Improve this Doc View Source

GetExtent(Double)

Overrides GetExtent(Double)

Declaration
public override BoundingCube GetExtent(double precision)
Parameters
Type Name Description
System.Double precision
Returns
Type Description
BoundingCube
Overrides
IGeoObjectImpl.GetExtent(Double)
| Improve this Doc View Source

GetObjectData(SerializationInfo, StreamingContext)

Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo to populate with data.

System.Runtime.Serialization.StreamingContext context

The destination (System.Runtime.Serialization.StreamingContext) for this serialization.

Overrides
IGeoObjectImpl.GetObjectData(SerializationInfo, StreamingContext)
| Improve this Doc View Source

GetOutline()

Returns a list of objects that define the outline (and holes) of this text. The global setting "Font.Precision" defines the precision of the outline, if the precision is 3 (fine) then splines can occur in the outline. If the precision is 1 or 2 (raw, middle) the splines are approximated.

Declaration
public virtual GeoObjectList GetOutline()
Returns
Type Description
GeoObjectList

List of curves describing the outline of this text object

| Improve this Doc View Source

GetQuadTreeItem(Projection, ExtentPrecision)

Overrides GetQuadTreeItem(Projection, ExtentPrecision)

Declaration
public override IQuadTreeInsertableZ GetQuadTreeItem(Projection projection, ExtentPrecision extentPrecision)
Parameters
Type Name Description
Projection projection
ExtentPrecision extentPrecision
Returns
Type Description
IQuadTreeInsertableZ
Overrides
IGeoObjectImpl.GetQuadTreeItem(Projection, ExtentPrecision)
| Improve this Doc View Source

GetShapes()

Returns the shapes of all characters of this text. The characters are appropriatly spaced, but the text size and glyphdirection is not taken into account

Declaration
public CompoundShape[] GetShapes()
Returns
Type Description
CompoundShape[]
| Improve this Doc View Source

GetShowProperties(IFrame)

Overrides GetShowProperties(IFrame)

Declaration
public override IShowProperty GetShowProperties(IFrame Frame)
Parameters
Type Name Description
IFrame Frame
Returns
Type Description
IShowProperty
Overrides
IGeoObjectImpl.GetShowProperties(IFrame)
| Improve this Doc View Source

HitTest(ref BoundingCube, Double)

Overrides HitTest(ref BoundingCube, Double)

Declaration
public override bool HitTest(ref BoundingCube cube, double precision)
Parameters
Type Name Description
BoundingCube cube
System.Double precision
Returns
Type Description
System.Boolean
Overrides
IGeoObjectImpl.HitTest(ref BoundingCube, Double)
| Improve this Doc View Source

HitTest(Projection, BoundingRect, Boolean)

Overrides HitTest(Projection, BoundingRect, Boolean)

Declaration
public override bool HitTest(Projection projection, BoundingRect rect, bool onlyInside)
Parameters
Type Name Description
Projection projection
BoundingRect rect
System.Boolean onlyInside
Returns
Type Description
System.Boolean
Overrides
IGeoObjectImpl.HitTest(Projection, BoundingRect, Boolean)
| Improve this Doc View Source

HitTest(Projection.PickArea, Boolean)

Overrides HitTest(Projection.PickArea, Boolean)

Declaration
public override bool HitTest(Projection.PickArea area, bool onlyInside)
Parameters
Type Name Description
Projection.PickArea area
System.Boolean onlyInside
Returns
Type Description
System.Boolean
Overrides
IGeoObjectImpl.HitTest(Projection.PickArea, Boolean)
| Improve this Doc View Source

Modify(ModOp)

Overrides Modify(ModOp)

Declaration
public override void Modify(ModOp m)
Parameters
Type Name Description
ModOp m
Overrides
IGeoObjectImpl.Modify(ModOp)
| Improve this Doc View Source

PaintTo3D(IPaintTo3D)

Overrides PaintTo3D(IPaintTo3D)

Declaration
public override void PaintTo3D(IPaintTo3D paintTo3D)
Parameters
Type Name Description
IPaintTo3D paintTo3D
Overrides
IGeoObjectImpl.PaintTo3D(IPaintTo3D)
| Improve this Doc View Source

PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)

Overrides PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)

Declaration
public override void PaintTo3DList(IPaintTo3D paintTo3D, ICategorizedDislayLists lists)
Parameters
Type Name Description
IPaintTo3D paintTo3D
ICategorizedDislayLists lists
Overrides
IGeoObjectImpl.PaintTo3DList(IPaintTo3D, ICategorizedDislayLists)
| Improve this Doc View Source

Position(GeoPoint, GeoVector, Double)

Overrides Position(GeoPoint, GeoVector, Double)

Declaration
public override double Position(GeoPoint fromHere, GeoVector direction, double precision)
Parameters
Type Name Description
GeoPoint fromHere
GeoVector direction
System.Double precision
Returns
Type Description
System.Double
Overrides
IGeoObjectImpl.Position(GeoPoint, GeoVector, Double)
| Improve this Doc View Source

PrePaintTo3D(IPaintTo3D)

Overrides PrePaintTo3D(IPaintTo3D)

Declaration
public override void PrePaintTo3D(IPaintTo3D paintTo3D)
Parameters
Type Name Description
IPaintTo3D paintTo3D
Overrides
IGeoObjectImpl.PrePaintTo3D(IPaintTo3D)
| Improve this Doc View Source

PrepareDisplayList(Double)

Overrides PrepareDisplayList(Double)

Declaration
public override void PrepareDisplayList(double precision)
Parameters
Type Name Description
System.Double precision
Overrides
IGeoObjectImpl.PrepareDisplayList(Double)
| Improve this Doc View Source

SetBounds(GeoPoint, GeoPoint, GeoPoint)

Modifies the direction, size and aspect ratio of the text so that the text will fit inside the parallelogram defined by the provided parameters.

Declaration
public void SetBounds(GeoPoint ll, GeoPoint lr, GeoPoint ul)
Parameters
Type Name Description
GeoPoint ll

Point for the lower left position of the text

GeoPoint lr

Point for the lower right position of the text

GeoPoint ul

Point for the upper left position of the text

| Improve this Doc View Source

SetDirections(GeoVector, GeoVector)

Declaration
public void SetDirections(GeoVector lineDirection, GeoVector glyphDirection)
Parameters
Type Name Description
GeoVector lineDirection
GeoVector glyphDirection
| Improve this Doc View Source

SetLineDirKeepGlyphAngle(GeoVector)

Declaration
public void SetLineDirKeepGlyphAngle(GeoVector ld)
Parameters
Type Name Description
GeoVector ld

Explicit Interface Implementations

| Improve this Doc View Source

IColorDef.SetTopLevel(ColorDef)

Declaration
void IColorDef.SetTopLevel(ColorDef newValue)
Parameters
Type Name Description
ColorDef newValue
| Improve this Doc View Source

IColorDef.SetTopLevel(ColorDef, Boolean)

Declaration
void IColorDef.SetTopLevel(ColorDef newValue, bool overwriteChildNullColor)
Parameters
Type Name Description
ColorDef newValue
System.Boolean overwriteChildNullColor
| Improve this Doc View Source

IJsonSerialize.GetObjectData(IJsonWriteData)

Declaration
void IJsonSerialize.GetObjectData(IJsonWriteData data)
Parameters
Type Name Description
IJsonWriteData data
| Improve this Doc View Source

IJsonSerialize.SetObjectData(IJsonReadData)

Declaration
void IJsonSerialize.SetObjectData(IJsonReadData data)
Parameters
Type Name Description
IJsonReadData data

Implements

IGeoObject
ILayer
IStyle
IOctTreeInsertable
System.IComparable
IFeedBack
System.ICloneable
IColorDef
System.Runtime.Serialization.ISerializable
IJsonSerialize
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX