This documentation is archived and is not being maintained.

ITextViewMargin Interface

Represents the margin that is attached to an edge of an ITextView.

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

public interface ITextViewMargin : IDisposable

The ITextViewMargin type exposes the following members.

  NameDescription
Public propertyEnabledDetermines whether the margin is enabled.
Public propertyMarginSizeGets the size of the margin.
Top

  NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.)
Public methodGetTextViewMarginGets the ITextViewMargin with the specified margin name.
Top

For more information about margins, see the "Margins" section of Inside the Editor. For information about extending margins and scrollbars, see the "Extending Margins and Scrollbars" section in Editor Extension Points.

Show: