Show / Hide Table of Contents

Class MTextParagraphOptions

Options for the MText entity paragraph formatting.

Inheritance
System.Object
MTextParagraphOptions
Inherited Members
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.Entities
Assembly: CADability.dll
Syntax
public class MTextParagraphOptions
Remarks

Old DXF versions might not support all available formatting codes.

Constructors

| Improve this Doc View Source

MTextParagraphOptions()

Initializes a new instance of the MTextParagraphOptions class.

Declaration
public MTextParagraphOptions()

Properties

| Improve this Doc View Source

Alignment

Gets or sets the paragraph justification (text horizontal alignment).

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

FirstLineIndent

Gets or sets the indent value for the first line of the paragraph.

Declaration
public double FirstLineIndent { get; set; }
Property Value
Type Description
System.Double
Remarks

Valid values range from -10000.0 to 10000.0, the default value 0.0.
Negative first line indent values are limited by the left indent, in the case its absolute value is larger than the left indent, when applied to the paragraph it will be automatically adjusted .

| Improve this Doc View Source

HeightFactor

Gets or sets the paragraph height factor.

Declaration
public double HeightFactor { get; set; }
Property Value
Type Description
System.Double
Remarks

Set as 1.0 to apply the default height factor.

| Improve this Doc View Source

LeftIndent

Gets or sets the left indent of the current paragraph.

Declaration
public double LeftIndent { get; set; }
Property Value
Type Description
System.Double
Remarks

Valid values range from 0.0 to 10000.0, the default value 0.0.

| Improve this Doc View Source

LineSpacingFactor

Gets or sets the paragraph line spacing factor.

Declaration
public double LineSpacingFactor { get; set; }
Property Value
Type Description
System.Double
Remarks

Percentage of default line spacing to be applied. Valid values range from 0.25 to 4.0, the default value 1.0.

| Improve this Doc View Source

LineSpacingStyle

Get or sets the paragraph MTextLineSpacingStyle.

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

RightIndent

Gets or sets the right indent value of the paragraphs.

Declaration
public double RightIndent { get; set; }
Property Value
Type Description
System.Double
Remarks

Valid values range from 0.0 to 10000.0, the default value 0.0.

| Improve this Doc View Source

SpacingAfter

Specifies the spacing before or after the paragraph.

Declaration
public double SpacingAfter { get; set; }
Property Value
Type Description
System.Double
Remarks

If set to zero no value will be applied and the default will be inherited. When it is non zero, valid values range from 0.25 to 4.0.
The distance between two paragraphs is determined by the total of the after paragraph spacing value of the upper paragraph and the before paragraph spacing value of the lower paragraph.

| Improve this Doc View Source

SpacingBefore

Specifies the spacing before the paragraphs.

Declaration
public double SpacingBefore { get; set; }
Property Value
Type Description
System.Double
Remarks

If set to zero no value will be applied and the default will be inherited. When it is non zero, valid values range from 0.25 to 4.0.
The distance between two paragraphs is determined by the total of the after paragraph spacing value of the upper paragraph and the before paragraph spacing value of the lower paragraph.

| Improve this Doc View Source

VerticalAlignment

Gets or sets the paragraph line vertical alignment.

Declaration
public MTextParagraphVerticalAlignment VerticalAlignment { get; set; }
Property Value
Type Description
MTextParagraphVerticalAlignment
Remarks

The vertical alignment affects how fractions, superscripts, subscripts, and characters of different heights are placed in a paragraph line. By default the paragraph vertical alignment is Center.

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