Compartilhar via


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

'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: Double

    The x-coordinate of the leading edge of the bounding rectangle.

  • top
    Type: Double

    The y-coordinate of the top edge of the bounding rectangle.

  • bidiWidth
    Type: Double

    The distance between the leading and trailing edges of the bounding rectangle. This can be negative for right-to-left text.

  • height
    Type: Double

    The height of the rectangle. The height must be non-negative.

  • textTop
    Type: Double

    The top of the text, measured from the line that contains the text.

  • textHeight
    Type: 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

See Also

Reference

TextBounds Structure

Microsoft.VisualStudio.Text.Formatting Namespace