• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class FormattedText

Represents formatted text in a Shape.

Inheritance
object
FormattedText
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Document.Drawing
Assembly: DRIT.Document.dll
Syntax
public class FormattedText

Properties

AllowTextToOverflowShape

Gets or sets allow text to overflow shape.

Declaration
public bool AllowTextToOverflowShape { get; set; }
Property Value
Type Description
bool

BodyEffects

Gets or sets body effects.

Declaration
public TextBodyEffects BodyEffects { get; }
Property Value
Type Description
TextBodyEffects

ColumnNumber

Gets or sets column number.

Declaration
public int ColumnNumber { get; set; }
Property Value
Type Description
int

ColumnSpacing

Gets or sets column spacing.

Declaration
public double ColumnSpacing { get; set; }
Property Value
Type Description
double

CustomAngle

Gets or sets custom angle.

Declaration
public int? CustomAngle { get; set; }
Property Value
Type Description
int?

Font

Gets or sets font.

Declaration
public DrawingFont Font { get; }
Property Value
Type Description
DrawingFont

Margin

Gets or sets margin.

Declaration
public Margin Margin { get; }
Property Value
Type Description
Margin

Paragraphs

Gets or sets paragraphs.

Declaration
public ParagraphCollection Paragraphs { get; }
Property Value
Type Description
ParagraphCollection

ResizeShapeToFitText

Gets or sets resize shape to fit text.

Declaration
public bool ResizeShapeToFitText { get; set; }
Property Value
Type Description
bool

Text

Gets text.

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

TextDirection

Gets or sets text direction.

Declaration
public TextDirection TextDirection { get; set; }
Property Value
Type Description
TextDirection

VerticalAlignment

Gets or sets vertical alignment.

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

WrapText

Gets or sets wrap text.

Declaration
public bool WrapText { get; set; }
Property Value
Type Description
bool

Methods

AddParagraph()

Adds a new paragraph to this text body and returns it.

Declaration
public DrawingTextParagraph AddParagraph()
Returns
Type Description
DrawingTextParagraph

AppendText(string)

Provides the append Text behavior for this object.

Declaration
public void AppendText(string text)
Parameters
Type Name Description
string text

The text used by the operation.

FindAll(string, TextSearchOptions)

Gets find all.

Declaration
public IReadOnlyList<TextRange> FindAll(string searchText, TextSearchOptions options)
Parameters
Type Name Description
string searchText
TextSearchOptions options
Returns
Type Description
IReadOnlyList<TextRange>

The resulting value.

FindAll(string, StringComparison)

Gets find all.

Declaration
public IReadOnlyList<TextRange> FindAll(string searchText, StringComparison comparison = StringComparison.Ordinal)
Parameters
Type Name Description
string searchText
StringComparison comparison
Returns
Type Description
IReadOnlyList<TextRange>

The resulting value.

FindAll(Regex)

Provides the find All behavior for this object.

Declaration
public IReadOnlyList<TextRange> FindAll(Regex regex)
Parameters
Type Name Description
Regex regex

The regex used by the operation.

Returns
Type Description
IReadOnlyList<TextRange>

The resulting value.

FindFirst(string, StringComparison)

Gets find first.

Declaration
public TextRange FindFirst(string searchText, StringComparison comparison = StringComparison.Ordinal)
Parameters
Type Name Description
string searchText
StringComparison comparison
Returns
Type Description
TextRange

The resulting value.

Replace(string, string, TextSearchOptions)

Gets replace.

Declaration
public int Replace(string oldValue, string newValue, TextSearchOptions options)
Parameters
Type Name Description
string oldValue
string newValue
TextSearchOptions options
Returns
Type Description
int

The resulting value.

Replace(string, string, StringComparison)

Gets replace.

Declaration
public int Replace(string oldValue, string newValue, StringComparison comparison = StringComparison.Ordinal)
Parameters
Type Name Description
string oldValue
string newValue
StringComparison comparison
Returns
Type Description
int

The resulting value.

Replace(Regex, string)

Provides the replace behavior for this object.

Declaration
public int Replace(Regex regex, string replacement)
Parameters
Type Name Description
Regex regex

The regex used by the operation.

string replacement

The replacement used by the operation.

Returns
Type Description
int

The resulting value.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX