TextBounds Constructor
Initializes a new instance of TextBounds.
Namespace: Microsoft.VisualStudio.Text.Formatting
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
‘선언
Public Sub New ( _
leading As Double, _
top As Double, _
bidiWidth As Double, _
height As Double, _
textTop As Double, _
textHeight As Double _
)
public TextBounds(
double leading,
double top,
double bidiWidth,
double height,
double textTop,
double textHeight
)
public:
TextBounds(
double leading,
double top,
double bidiWidth,
double height,
double textTop,
double textHeight
)
new :
leading:float *
top:float *
bidiWidth:float *
height:float *
textTop:float *
textHeight:float -> TextBounds
public function TextBounds(
leading : double,
top : double,
bidiWidth : double,
height : double,
textTop : double,
textHeight : double
)
Parameters
- leading
Type: System.Double
The x-coordinate of the leading edge of the bounding rectangle.
- top
Type: System.Double
The y-coordinate of the top edge of the bounding rectangle.
- bidiWidth
Type: System.Double
The distance between the leading and trailing edges of the bounding rectangle. This can be negative for right-to-left text.
- height
Type: System.Double
The height of the rectangle. The height must be non-negative.
- textTop
Type: System.Double
The top of the text, measured from the line that contains the text.
- textHeight
Type: System.Double
The height of the text, measured from the line that contains the text.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | Leading, top, height, or bidiWidth is not a valid number, or height or textHeight is negative or not a valid number. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.