Click or drag to resize
TextBox Class
Represents a Shape which serves as a container for Block elements which are outside page main content flow.
Inheritance Hierarchy

Namespace:  GemBox.Document
Assembly:  GemBox.Document (in GemBox.Document.dll) Version: 25.3.30.1243
Syntax
public sealed class TextBox : Shape, 
	IContentElement

The TextBox type exposes the following members.

Constructors
  NameDescription
Public methodTextBox(DocumentModel, Layout)
Initializes a new instance of empty TextBox with specified layout (position and size).
Public methodTextBox(DocumentModel, Layout, Block)
Initializes a new instance of the TextBox class with specified layout (position and size) and content.
Public methodTextBox(DocumentModel, Layout, ShapeType)
Initializes a new instance of empty TextBox with specified layout (position and size) and shape type.
Public methodTextBox(DocumentModel, Layout, IEnumerableBlock)
Initializes a new instance of the TextBox class with specified layout (position and size) and content.
Top
Properties
  NameDescription
Public propertyAdjustValues
Gets the shape's adjust values.
(Inherited from Shape.)
Public propertyBlocks
Gets the block elements that represent content of this TextBox instance.
Public propertyContent
Gets the content of the current Element.
(Inherited from Element.)
Public propertyDocument
Gets the owner document.
(Inherited from Element.)
Public propertyElementType
Gets the element type for TextBox which is TextBox.
(Overrides ShapeElementType.)
Public propertyFill
Gets the Brush that specifies how the shape's interior is filled.
(Inherited from Shape.)
Public propertyLayout
Gets or sets the DrawingElement layout (position and size).
(Inherited from DrawingElement.)
Public propertyMetadata
Gets the metadata (non-visual properties) of this DrawingElement instance.
(Inherited from DrawingElement.)
Public propertyOutline
Gets the Pen that specifies the shape's outline.
(Inherited from Shape.)
Public propertyParent
Gets the parent of this Element instance.
(Inherited from Element.)
Public propertyParentCollection
Gets the InlineCollection that contains this Inline instance.
(Inherited from Inline.)
Public propertyShapeType
Gets the type of the shape.
(Inherited from Shape.)
Public propertyTextBoxFormat
Gets the text box format.
Top
Methods
Explicit Interface Implementations
Remarks

TextBox is a content Element consisting of Block derived elements (Paragraphs and Tables).

TextBox's shape type (geometry) is represented by ShapeType enumeration. It can be set only through TextBox(DocumentModel, Layout, ShapeType) constructor and retrieved from ShapeType property.

TextBox can be filled with a Brush and outlined with a Pen.

TextBox can be positioned in-line with the rest of the document content or floating within document content. For more information, see remarks for DrawingElement.Layout property.

See Also