Class MTextParagraphOptions
Options for the MText entity paragraph formatting.
Inheritance
Inherited Members
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 SourceMTextParagraphOptions()
Initializes a new instance of the MTextParagraphOptions class.
Declaration
public MTextParagraphOptions()
Properties
| Improve this Doc View SourceAlignment
Gets or sets the paragraph justification (text horizontal alignment).
Declaration
public MTextParagraphAlignment Alignment { get; set; }
Property Value
| Type | Description |
|---|---|
| MTextParagraphAlignment |
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 .
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.
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.
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.
LineSpacingStyle
Get or sets the paragraph MTextLineSpacingStyle.
Declaration
public MTextLineSpacingStyle LineSpacingStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| MTextLineSpacingStyle |
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.
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.
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.
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.