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

    Show / Hide Table of Contents

    TextBox Class

    Namespace:
    GemBox.Presentation
    Assembly:
    GemBox.Presentation.dll

    Represents a text content and formatting associated with an object such as a Shape or a TableCell.

    • C#
    • VB.NET
    public sealed class TextBox
    Public NotInheritable Class TextBox
    Inheritance:
    System.Object
    TextBox

    Properties

    Format

    Gets or sets the text box formatting.

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

    The text box formatting.

    Paragraphs

    Gets the paragraphs contained in this text box.

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

    The paragraphs contained in this text box.

    Shape

    Gets the Shape associated with this TextBox or null if TextBox is not associated with any Shape.

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

    The Shape associated with this TextBox or null if TextBox is not associated with any Shape.

    Methods

    AddParagraph()

    Adds a new paragraph to the text box.

    • C#
    • VB.NET
    public TextParagraph AddParagraph()
    Public Function AddParagraph As TextParagraph
    Returns
    TextParagraph

    The paragraph added to the text box.

    ToString()

    Returns a System.String that represents this TextBox instance.

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

    A System.String that represents this TextBox instance.

    Overrides
    System.Object.ToString()

    Examples

    Text Boxes Example
    Text Box Formatting Example

    See Also

    Text
    Text
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.