Initializes a new instance of the
InputBoxInfo.
Syntax
'Declaration
Public Function New( _
ByVal As Boolean, _
ByVal As Size, _
ByVal As Color, _
ByVal As Color, _
ByVal As CharBoxStyle, _
ByVal As Padding, _
ByVal As Padding, _
ByVal As CharBoxBorderInfo, _
ByVal As Font, _
ByVal As ContentAlignment, _
ByVal As String _
)
'Usage
Dim autoSize As Boolean
Dim size As Size
Dim backColor As Color
Dim foreColor As Color
Dim style As CharBoxStyle
Dim margin As Padding
Dim padding As Padding
Dim border As CharBoxBorderInfo
Dim font As Font
Dim contentAlignment As ContentAlignment
Dim text As String
Dim instance As New LiteralBoxInfo(autoSize, size, backColor, foreColor, style, margin, padding, border, font, contentAlignment, text)
public LiteralBoxInfo(
bool ,
Size ,
Color ,
Color ,
CharBoxStyle ,
Padding ,
Padding ,
CharBoxBorderInfo ,
Font ,
ContentAlignment ,
string
)
Parameters
- autoSize
- A bool value indicating whether the height of the control automatically adjusts when the font assigned to the control is changed.
- size
- A System.Drawing.Size indicates the size of the literal box.
- backColor
- A System.Drawing.Color indicates the background color.
- foreColor
- A System.Drawing.Color indicates the foreground color.
- style
- A CharBoxStyle indicates the literal box style.
- margin
- A System.Windows.Forms.Padding indicates the margins.
- padding
- A System.Windows.Forms.Padding indicates the paddings.
- border
- A CharBoxBorderInfo indicates the border of the literal box.
- font
- A System.Drawing.Font indicates the text font of the literal box.
- contentAlignment
- A System.Drawing.ContentAlignment value indicates the content alignment of the literal box.
- text
- A System.String value indicates the text of the literal box.
See Also