ViewState Class

 

Represents the state of a view in terms of the size of its viewport (the area visible in the document window), visual snapshot, and editable snapshot.

Namespace:   Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

System.Object
  Microsoft.VisualStudio.Text.Editor.ViewState

public class ViewState

NameDescription
System_CAPS_pubmethodViewState(ITextView)

Initializes a new instance of ViewState for the specified text view

System_CAPS_pubmethodViewState(ITextView, Double, Double)

Initializes a new instance of the ViewState for the specified view, viewport width, and viewport height.

NameDescription
System_CAPS_pubpropertyEditSnapshot

Gets the view's edit snapshot.

System_CAPS_pubpropertyViewportBottom

Gets the y-coordinate of the viewport's bottom edge.

System_CAPS_pubpropertyViewportHeight

Gets the height of the viewport.

System_CAPS_pubpropertyViewportLeft

Gets the x-coordinate of the viewport's left edge.

System_CAPS_pubpropertyViewportRight

Gets the x-coordinate of the viewport's right edge.

System_CAPS_pubpropertyViewportTop

Gets the y-coordinate of the viewport's top edge.

System_CAPS_pubpropertyViewportWidth

Gets the width of the viewport.

System_CAPS_pubpropertyVisualSnapshot

Gets the view's visual snapshot.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: