Share via


IWpfTextViewHost.GetTextViewMargin(String) Method

Definition

Gets the IWpfTextViewMargin with the given marginName that is attached to an edge of this IWpfTextView.

public:
 Microsoft::VisualStudio::Text::Editor::IWpfTextViewMargin ^ GetTextViewMargin(System::String ^ marginName);
public Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin GetTextViewMargin (string marginName);
abstract member GetTextViewMargin : string -> Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
Public Function GetTextViewMargin (marginName As String) As IWpfTextViewMargin

Parameters

marginName
String

The name of the ITextViewMargin.

Returns

The ITextViewMargin with a name that matches marginName.

Exceptions

marginName is null.

Remarks

Callers of this method should only utilize the method after the Loaded event is raised.

Applies to