'Declaration Public Function AddTextBox( _ ByVal width As Single, _ ByVal height As Single, _ Optional ByVal text As String, _ Optional ByVal formatting As Formatting, _ Optional ByVal fillColor As Nullable(Of Color), _ Optional ByVal outlineColor As Nullable(Of Color), _ Optional ByVal outlineWidth As Single, _ Optional ByVal outlineDash As Nullable(Of DashStyle) _ ) As Shape
'Usage Dim instance As Document Dim width As Single Dim height As Single Dim text As String Dim formatting As Formatting Dim fillColor As Nullable(Of Color) Dim outlineColor As Nullable(Of Color) Dim outlineWidth As Single Dim outlineDash As Nullable(Of DashStyle) Dim value As Shape value = instance.AddTextBox(width, height, text, formatting, fillColor, outlineColor, outlineWidth, outlineDash)
public Shape AddTextBox( float width, float height, string text, Formatting formatting, Nullable<Color> fillColor, Nullable<Color> outlineColor, float outlineWidth, Nullable<DashStyle> outlineDash )
Parameters
- width
- The width of the TextBox (in points).
- height
- The height of the TextBox (in points).
- text
- The text to use in the TextBox. If not defined, an empty paragraph is used.
- formatting
- The Formatting to use for the text in the TextBox.
- fillColor
- The Color used to fill the TextBox. If not defined, white is used.
- outlineColor
- The Color used for the outline of the TextBox. If not defined, black is used.
- outlineWidth
- The width used for the outline of the TextBox (in points). If not defined, 1 is used.
- outlineDash
- The dash style used for the outline of the TextBox. If not defined, Solid is used.
Return Value
The newly created TextBox.