다음을 통해 공유


ITextViewMargin.GetTextViewMargin(String) Method

Definition

Gets the ITextViewMargin with the given marginName.

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

Parameters

marginName
String

The name of the ITextViewMargin.

Returns

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

Exceptions

marginName is null.

Remarks

A margin returns itself if it is passed its own name. If the name does not match and it is a container margin, it forwards the call to its children. Margin name comparisons are case-insensitive.

Applies to