Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of TextBounds.
Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
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.DoubleThe x-coordinate of the leading edge of the bounding rectangle.
top
Type: System.DoubleThe y-coordinate of the top edge of the bounding rectangle.
bidiWidth
Type: System.DoubleThe distance between the leading and trailing edges of the bounding rectangle. This can be negative for right-to-left text.
height
Type: System.DoubleThe height of the rectangle. The height must be non-negative.
textTop
Type: System.DoubleThe top of the text, measured from the line that contains the text.
textHeight
Type: System.DoubleThe 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.