ITextViewMargin::GetTextViewMargin Method (String^)

 

Gets the ITextViewMargin with the specified margin name.

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

ITextViewMargin^ GetTextViewMargin(
	String^ marginName
)

Parameters

marginName
Type: System::String^

The name of the ITextViewMargin.

Return Value

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

The ITextViewMargin named marginName, or null if no match is found.

Exception Condition
ArgumentNullException

marginName is null.

A margin must return itself if passed its name, and a container margin must forward the call to its children.

Return to top
Show: