TextBounds.Width 属性

获取矩形前边缘与后边缘之间的距离(以文本呈现坐标系表示)。

命名空间:  Microsoft.VisualStudio.Text.Formatting
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

声明
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

属性值

类型:Double
边框前边缘之间的距离 (以文本呈现坐标系表示)。

备注

该值始终为非负值。

.NET Framework 安全性

请参阅

参考

TextBounds 结构

Microsoft.VisualStudio.Text.Formatting 命名空间