Delen via


ITextViewMargin.MarginSize Property

Gets the size of the margin.

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

Syntax

'Declaration
ReadOnly Property MarginSize As Double
double MarginSize { get; }
property double MarginSize {
    double get ();
}
abstract MarginSize : float with get
function get MarginSize () : double

Property Value

Type: Double
The size of the margin.

Exceptions

Exception Condition
ObjectDisposedException

The margin is disposed.

Remarks

For a horizontal margin this is the height of the margin, since the width will be determined by the ITextView.

For a vertical margin this is the width of the margin, since the height will be determined by the ITextView.

.NET Framework Security

See Also

Reference

ITextViewMargin Interface

Microsoft.VisualStudio.Text.Editor Namespace