ITextViewMargin::GetTextViewMargin Method (String^)
Visual Studio 2015
Gets the ITextViewMargin with the specified margin name.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
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.
Show: