IWpfTextViewHost.GetTextViewMargin(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.