Show / Hide Table of Contents

Class LinetypeTextSegment

Represents a text linetype segment.

Inheritance
System.Object
LinetypeSegment
LinetypeTextSegment
Implements
System.ICloneable
Inherited Members
LinetypeSegment.Type
LinetypeSegment.Length
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: netDxf.Tables
Assembly: CADability.dll
Syntax
public class LinetypeTextSegment : LinetypeSegment, ICloneable

Constructors

| Improve this Doc View Source

LinetypeTextSegment()

Initializes a new instance of the LinetypeShapeSegment class.

Declaration
public LinetypeTextSegment()
| Improve this Doc View Source

LinetypeTextSegment(String, TextStyle, Double)

Initializes a new instance of the LinetypeShapeSegment class.

Declaration
public LinetypeTextSegment(string text, TextStyle style, double length)
Parameters
Type Name Description
System.String text

Text to display on the linetype segment.

TextStyle style

Name of the TextStyle.

System.Double length

Dash, dot, or space length of the linetype segment.

| Improve this Doc View Source

LinetypeTextSegment(String, TextStyle, Double, Vector2, LinetypeSegmentRotationType, Double, Double)

Initializes a new instance of the LinetypeShapeSegment class.

Declaration
public LinetypeTextSegment(string text, TextStyle style, double length, Vector2 offset, LinetypeSegmentRotationType rotationType, double rotation, double scale)
Parameters
Type Name Description
System.String text

Text to display on the linetype segment.

TextStyle style

Name of the TextStyle.

System.Double length

Dash, dot, or space length of the linetype segment.

Vector2 offset

Shift of the shape along the line.

LinetypeSegmentRotationType rotationType

Type of rotation defined by the rotation value.

System.Double rotation

Rotation of the text.

System.Double scale

Scale of the text.

Properties

| Improve this Doc View Source

Offset

Gets or sets the shift of the text along the line.

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

Rotation

Gets or sets the angle in degrees of the text.

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

RotationType

Gets or sets the type of rotation defined by the rotation value upright, relative, or absolute.

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

Scale

Gets or sets the scale of the text relative to the scale of the linetype.

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

Style

Gets or sets the TextStyle of the text to be displayed by the linetype.

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

Text

Gets or sets the text displayed by the linetype.

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Clone()

Creates a new LinetypeShapeSegment that is a copy of the current instance.

Declaration
public override object Clone()
Returns
Type Description
System.Object

A new LinetypeShapeSegment that is a copy of this instance.

Overrides
LinetypeSegment.Clone()
| Improve this Doc View Source

OnTextStyleChangedEvent(TextStyle, TextStyle)

Declaration
protected virtual TextStyle OnTextStyleChangedEvent(TextStyle oldTextStyle, TextStyle newTextStyle)
Parameters
Type Name Description
TextStyle oldTextStyle
TextStyle newTextStyle
Returns
Type Description
TextStyle

Events

| Improve this Doc View Source

TextStyleChanged

Declaration
public event LinetypeTextSegment.TextStyleChangedEventHandler TextStyleChanged
Event Type
Type Description
LinetypeTextSegment.TextStyleChangedEventHandler

Implements

System.ICloneable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX