TextPane::IsVisible Method (TextPoint^, Object^)

 

Returns a value indicating whether the character or specified characters are visible in the text pane.

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

bool IsVisible(
	TextPoint^ Point,
	Object^ PointOrCount
)

Parameters

Point
Type: EnvDTE::TextPoint^

Required. A TextPoint location used to determine if a character is visible. Since a Point is situated between two characters, the default interpretation (that is, when no value is given for the PointOrCount argument) is the first character immediately to the right of the text point. If the character after the text point is visible, then the Point is visible as well.

PointOrCount
Type: System::Object^

Optional. Another point that works with the first Point argument to indicate a range of text. IsVisible determines whether or not this range of text is visible. PointOrCount can also be set to a number of characters that follow Point to indicate the range of text.

If a value is not supplied to the PointOrCount argument, IsVisible checks for the visibility of the character immediately to the right of Point, because PointOrCount has a default value of 1.

Return Value

Type: System::Boolean

true if the point is visible; otherwise, false.

If a value is supplied to PointOrCount, then IsVisible returns true when the entire selected range of text is visible.

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