[]
        
(Showing Draft Content)

C1.C1Preview.ParagraphObjectCollection.AddText

AddText Method

AddText(string)

Adds a text string to the current paragraph content.

Declaration
public ParagraphText AddText(string text)
Parameters
Type Name Description
string text

The text string to add.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text, and adds it to the current collection.

AddText(string, Style)

Adds a text string with the specified style to the current paragraph content.

Declaration
public ParagraphText AddText(string text, Style style)
Parameters
Type Name Description
string text

The text string to add.

Style style

The style to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text and style, and adds it to the current collection.

AddText(string, Font)

Adds a text string with the specified font to the current paragraph content.

Declaration
public ParagraphText AddText(string text, Font font)
Parameters
Type Name Description
string text

The text string to add.

Font font

The font to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text and font, and adds it to the current collection.

AddText(string, Color)

Adds a text string with the specified text color to the current paragraph content.

Declaration
public ParagraphText AddText(string text, Color textColor)
Parameters
Type Name Description
string text

The text string to add.

Color textColor

The text color to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text and text color, and adds it to the current collection.

AddText(string, TextPositionEnum)

Adds a text string with the specified text position to the current paragraph content.

Declaration
public ParagraphText AddText(string text, TextPositionEnum textPosition)
Parameters
Type Name Description
string text

The text string to add.

TextPositionEnum textPosition

The text position to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text and text position, and adds it to the current collection.

AddText(string, Font, Color)

Adds a text string with the specified font and text color to the current paragraph content.

Declaration
public ParagraphText AddText(string text, Font font, Color textColor)
Parameters
Type Name Description
string text

The text string to add.

Font font

The font to use to render the string.

Color textColor

The text color to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text, font and text color, and adds it to the current collection.

AddText(string, Font, TextPositionEnum)

Adds a text string with the specified font and text position to the current paragraph content.

Declaration
public ParagraphText AddText(string text, Font font, TextPositionEnum textPosition)
Parameters
Type Name Description
string text

The text string to add.

Font font

The font to use to render the string.

TextPositionEnum textPosition

The text position to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text, font and text position, and adds it to the current collection.

AddText(string, Color, TextPositionEnum)

Adds a text string with the specified text color and position to the current paragraph content.

Declaration
public ParagraphText AddText(string text, Color textColor, TextPositionEnum textPosition)
Parameters
Type Name Description
string text

The text string to add.

Color textColor

The text color to use to render the string.

TextPositionEnum textPosition

The text position to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text, text color and position, and adds it to the current collection.

AddText(string, Font, Color, TextPositionEnum)

Adds a text string with the specified font, text color and position to the current paragraph content.

Declaration
public ParagraphText AddText(string text, Font font, Color textColor, TextPositionEnum textPosition)
Parameters
Type Name Description
string text

The text string to add.

Font font

The font to use to render the string.

Color textColor

The text color to use to render the string.

TextPositionEnum textPosition

The text position to use to render the string.

Returns
Type Description
ParagraphText

A ParagraphText object representing the specified text string.

Remarks

This method creates a ParagraphText, initializes it with the specified text, font, text color and position, and adds it to the current collection.