IWpfTextViewHost.GetTextViewMargin Method

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: String

The name of the ITextViewMargin.

Return Value

Type: Microsoft.VisualStudio.Text.Editor.IWpfTextViewMargin
The ITextViewMargin with a name that matches marginName.

ExceptionCondition
ArgumentNullException

marginName is null.

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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft