GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    TextParagraph Class

    Namespace:
    GemBox.Spreadsheet.Drawing
    Assembly:
    GemBox.Spreadsheet.dll

    Represents a paragraph of text.

    • C#
    • VB.NET
    public class TextParagraph
    Public Class TextParagraph
    Inheritance:
    System.Object
    TextParagraph

    Properties

    Elements

    Gets the paragraph text elements.

    • C#
    • VB.NET
    public TextElementCollection Elements { get; }
    Public ReadOnly Property Elements As TextElementCollection
    Property Value
    TextElementCollection

    The paragraph text elements.

    Format

    Gets or sets the paragraph's formatting options.

    • C#
    • VB.NET
    public TextParagraphFormat Format { get; set; }
    Public Property Format As TextParagraphFormat
    Property Value
    TextParagraphFormat

    The paragraph's formatting options.

    Remarks

    This property always returns a new instance of a TextParagraphFormat that points to data associated with this paragraph. This reduces memory footprint since simpler internal structures can be used to hold the data and execution time increase is negligible since Garbage Collector has a very good performance for a short-lived (Generation 0) objects.

    When setting a value, instance of a TextParagraphFormat won't actually be stored in this paragraph, but the data to which the instance points to will be copied. This enables easy copying of complex properties from one text element to another.

    Methods

    ToString()

    Returns a System.String that represents this TextParagraph instance.

    • C#
    • VB.NET
    public override string ToString()
    Public Overrides Function ToString As String
    Returns
    System.String

    A System.String that represents this TextParagraph instance.

    Overrides
    System.Object.ToString()
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.