TextPane::TryToShow Method (TextPoint^, vsPaneShowHow, Object^)
Adjusts the location of the view in the text buffer so that the indicated range of text is shown in the text pane, if possible. You can control where in the pane the text displays.
Assembly: EnvDTE (in EnvDTE.dll)
bool TryToShow(
TextPoint^ Point,
vsPaneShowHow How = vsPaneShowHow::vsPaneShowAsIs,
Object^ PointOrCount
)
Parameters
- Point
-
Type:
EnvDTE::TextPoint^
Required. The TextPoint location you want to attempt to show.
- How
-
Type:
EnvDTE::vsPaneShowHow
Required. A vsPaneShowHow constant indicating how to display the text.
- PointOrCount
-
Type:
System::Object^
Optional. A variant representing the end of a range of text to show. If PointOrCount is a number of characters, the characters follow Point. If PointOrCount is a point before Point, then it will be at the top of the text pane if How is set to vsPaneShowTop.
If How is set to vsPaneShowCentered, and the number of lines in the selected text is greater than the height of the pane, then the top line of the selected text is placed at the top of the pane.