Udostępnij za pośrednictwem


EditPoint2.TryToShow(vsPaneShowHow, Object) Method

Definition

bool TryToShow(EnvDTE::vsPaneShowHow How = EnvDTE.vsPaneShowHow.vsPaneShowCentered, winrt::Windows::Foundation::IInspectable const & PointOrCount);
[System.Runtime.InteropServices.DispId(50)]
public bool TryToShow (EnvDTE.vsPaneShowHow How = EnvDTE.vsPaneShowHow.vsPaneShowCentered, object PointOrCount);
[System.Runtime.InteropServices.DispId(50)]
public bool TryToShow (EnvDTE.vsPaneShowHow How, object PointOrCount);
[<System.Runtime.InteropServices.DispId(50)>]
abstract member TryToShow : EnvDTE.vsPaneShowHow * obj -> bool
Public Function TryToShow (Optional How As vsPaneShowHow = EnvDTE.vsPaneShowHow.vsPaneShowCentered, Optional PointOrCount As Object) As Boolean
Public Function TryToShow (How As vsPaneShowHow, Optional PointOrCount As Object) As Boolean

Parameters

How
vsPaneShowHow

Optional. A vsPaneShowHow constant that determines how the code is displayed.

PointOrCount
Object

Optional. The endpoint of the selected range of text to be displayed. Can be either a TextPoint or an integer.

Returns

true if the span of text fits within the current code editor; otherwise, false.

Implements

Attributes

Remarks

The How param defaults to vsPaneShowCentered in IDL but we can't default it here because PointOrCount can't be defaulted.

Applies to