TextPane.TryToShow(TextPoint, vsPaneShowHow, Object) Method

Definition

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

Parameters

Point
TextPoint

Required. The TextPoint location you want to attempt to show.

How
vsPaneShowHow

Required. A vsPaneShowHow constant indicating how to display the text.

PointOrCount
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.

Returns

true if the text can be displayed; otherwise, false.

Attributes

Remarks

The How param defaults to vsPaneShowAsIs in IDL but can't be defaulted here because PointOrCount can't be defaulted.

Applies to