VirtualPoint.TryToShow(vsPaneShowHow, Object) VirtualPoint.TryToShow(vsPaneShowHow, Object) VirtualPoint.TryToShow(vsPaneShowHow, Object) Method

Definition

Attempts to display the text point's location.

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

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

PointOrCount
Object Object Object

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

Returns

A Boolean value indicating true if the span of text fits within the current code editor, false if not.

Implements

Remarks

TryToShow adjusts the location of the buffer in the code view so that the indicated range of text is displayed in the code editor, if possible. TryToShow is similar to the TextPane object's Activate method, except that it attempts to display the window and the specified range of text.

Applies to