IWpfTextViewHost::GetTextViewMargin Method (String^)

 

Gets the ITextViewMargin with the specified margin name that is attached to an edge of this IWpfTextView.

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

IWpfTextViewMargin^ GetTextViewMargin(
	String^ marginName
)

Parameters

marginName
Type: System::String^

The name of the ITextViewMargin.

Return Value

Type: Microsoft.VisualStudio.Text.Editor::IWpfTextViewMargin^

The ITextViewMargin with a name that matches marginName.

Exception Condition
ArgumentNullException

marginName is null.

This method should be called only after the Loaded event is raised.

Return to top
Show: