Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

TextBox Properties

Text box within a Shape object. Contains the text document and the properties that control the size and alignment of the text box.
Name Description
Document Provides access to content of the text box.
HeightRule Gets or sets the rule for determining the height of the text box.
MarginBottom Gets or sets the distance between the bottom of the text and the bottom edge of the shape that contains the text.
MarginLeft Gets or sets the distance between the left edge of the text and the left edge of the shape that contains the text.
MarginRight Gets or sets the distance between the right edge of the text and the right edge of the shape that contains the text.
MarginTop Gets or sets the distance between the top of the text and the top edge of the shape that contains the text.
RotateTextWithShape Gets or sets whether to rotate the text box content with the text box.
See Also