VirtualPoint.TryToShow Method
Attempts to display the text point's location.
Namespace: EnvDTE
Assembly: EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
Function TryToShow ( _
How As vsPaneShowHow, _
PointOrCount As Object _
) As Boolean
bool TryToShow(
vsPaneShowHow How,
Object PointOrCount
)
bool TryToShow(
[InAttribute] vsPaneShowHow How,
[InAttribute] Object^ PointOrCount
)
abstract TryToShow :
How:vsPaneShowHow *
PointOrCount:Object -> bool
function TryToShow(
How : vsPaneShowHow,
PointOrCount : Object
) : boolean
Parameters
How
Type: EnvDTE.vsPaneShowHowOptional. A vsPaneShowHow constant that determines how the code is displayed.
PointOrCount
Type: System.ObjectOptional. The endpoint of the selected range of text to be displayed. It can be either a TextPoint or an integer.
Return Value
Type: System.Boolean
A Boolean value indicating true if the span of text fits within the current code editor, false if not.
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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples