EditPoint2::TryToShow Method (vsPaneShowHow, Object^)

 

Attempts to display the text point's location.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

bool TryToShow(
	vsPaneShowHow How = vsPaneShowHow::vsPaneShowCentered,
	Object^ PointOrCount
)

Parameters

How
Type: EnvDTE::vsPaneShowHow

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

PointOrCount
Type: System::Object^

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

Return Value

Type: System::Boolean

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

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.

No code example is currently available or this language may not be supported.
Return to top
Show: