Share via


TextBounds.Width Property

Gets the distance between the leading and trailing edges of the rectangle in the text rendering coordinate system.

Namespace:  Microsoft.VisualStudio.Text.Formatting
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Public ReadOnly Property Width As Double
public double Width { get; }
public:
property double Width {
    double get ();
}
member Width : float with get
function get Width () : double

Property Value

Type: Double
The distance between the leading and trailing edges of the rectangle in the text rendering coordinate system.

Remarks

This value is always non-negative.

.NET Framework Security

See Also

Reference

TextBounds Structure

Microsoft.VisualStudio.Text.Formatting Namespace