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

Class RichTextParagraph

Represents the rich text paragraph class used by the spreadsheet model.

Inheritance
object
RichTextParagraph
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class RichTextParagraph

Constructors

RichTextParagraph()

Initializes a new RichTextParagraph for the supplied workbook data.

Declaration
public RichTextParagraph()

RichTextParagraph(RichTextRun)

Initializes a new RichTextParagraph for the supplied workbook data.

Declaration
public RichTextParagraph(RichTextRun run)
Parameters
Type Name Description
RichTextRun run

RichTextParagraph(string)

Initializes a new RichTextParagraph for the supplied workbook data.

Declaration
public RichTextParagraph(string text)
Parameters
Type Name Description
string text

Properties

Cell

Exposes the cell associated with RichTextParagraph.

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

The cell returned by the operation.

LastRun

Exposes the last run associated with RichTextParagraph.

Declaration
public RichTextRun LastRun { get; }
Property Value
Type Description
RichTextRun

The last run returned by the operation.

Runs

Exposes the runs associated with RichTextParagraph.

Declaration
public ObservableCollection<RichTextRun> Runs { get; }
Property Value
Type Description
ObservableCollection<RichTextRun>

The runs returned by the operation.

Text

Exposes the text associated with RichTextParagraph.

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

The text returned by the operation.

Methods

Append(string)

Adds the supplied end to RichTextParagraph.

Declaration
public RichTextParagraph Append(string text)
Parameters
Type Name Description
string text

The text used by the operation.

Returns
Type Description
RichTextParagraph

The append returned by the operation.

AppendLine(string)

Adds the supplied end line to RichTextParagraph.

Declaration
public RichTextParagraph AppendLine(string text)
Parameters
Type Name Description
string text

The text used by the operation.

Returns
Type Description
RichTextParagraph

The append line returned by the operation.

AppendNewLineAfter(string)

Adds the supplied end new line after to RichTextParagraph.

Declaration
public RichTextParagraph AppendNewLineAfter(string text)
Parameters
Type Name Description
string text

The text used by the operation.

Returns
Type Description
RichTextParagraph

The append new line after returned by the operation.

Bold()

Exposes the bold associated with RichTextParagraph.

Declaration
public RichTextParagraph Bold()
Returns
Type Description
RichTextParagraph

The bold returned by the operation.

Create(string)

Exposes the create associated with RichTextParagraph.

Declaration
public static RichTextParagraph Create(string text)
Parameters
Type Name Description
string text

The text used by the operation.

Returns
Type Description
RichTextParagraph

The create returned by the operation.

Equals(RichTextParagraph)

Exposes the equals associated with RichTextParagraph.

Declaration
public bool Equals(RichTextParagraph other)
Parameters
Type Name Description
RichTextParagraph other

The other used by the operation.

Returns
Type Description
bool

The equals returned by the operation.

Equals(object)

Exposes the equals associated with RichTextParagraph.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj

The obj used by the operation.

Returns
Type Description
bool

The equals returned by the operation.

Overrides
object.Equals(object)

FontSize(double)

Exposes the font size associated with RichTextParagraph.

Declaration
public RichTextParagraph FontSize(double value)
Parameters
Type Name Description
double value

The value used by the operation.

Returns
Type Description
RichTextParagraph

The font size returned by the operation.

GetHashCode()

Retrieves the requested hash code from RichTextParagraph.

Declaration
public override int GetHashCode()
Returns
Type Description
int

The get hash code returned by the operation.

Overrides
object.GetHashCode()

Subscript()

Exposes the subscript associated with RichTextParagraph.

Declaration
public RichTextParagraph Subscript()
Returns
Type Description
RichTextParagraph

The subscript returned by the operation.

Superscript()

Exposes the superscript associated with RichTextParagraph.

Declaration
public RichTextParagraph Superscript()
Returns
Type Description
RichTextParagraph

The superscript returned by the operation.

VerticalAlignment(VerticalRunAlignment)

Exposes the vertical alignment associated with RichTextParagraph.

Declaration
public RichTextParagraph VerticalAlignment(VerticalRunAlignment alignment)
Parameters
Type Name Description
VerticalRunAlignment alignment

The alignment used by the operation.

Returns
Type Description
RichTextParagraph

The vertical alignment returned by the operation.

Back to top

DR-IT Software documentation

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

Generated by DocFX