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
- 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.