次の方法で共有


AbstractSelectionPresentationProperties.TryGetContainingTextViewLine Method

Definition

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.

Applies to