AbstractSelectionPresentationProperties.TryGetContainingTextViewLine 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.
Tries to get the ITextViewLine that contains the InsertionPoint. This can fail if the call happens during a view layout or after the view is closed.
public:
abstract bool TryGetContainingTextViewLine([Runtime::InteropServices::Out] Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^ % line);
public abstract bool TryGetContainingTextViewLine (out Microsoft.VisualStudio.Text.Formatting.ITextViewLine line);
abstract member TryGetContainingTextViewLine : ITextViewLine -> bool
Public MustOverride Function TryGetContainingTextViewLine (ByRef line As ITextViewLine) As Boolean
Parameters
- line
- ITextViewLine
Returns out the requested line if available, or null otherwise.
Returns
True if successful, false otherwise.