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.
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
| Name | Description | |
|---|---|---|
![]() | ViewState(ITextView) | Initializes a new instance of ViewState for the specified text view |
![]() | ViewState(ITextView, Double, Double) | Initializes a new instance of the ViewState for the specified view, viewport width, and viewport height. |
| Name | Description | |
|---|---|---|
![]() | EditSnapshot | Gets the view's edit snapshot. |
![]() | ViewportBottom | Gets the y-coordinate of the viewport's bottom edge. |
![]() | ViewportHeight | Gets the height of the viewport. |
![]() | ViewportLeft | Gets the x-coordinate of the viewport's left edge. |
![]() | ViewportRight | Gets the x-coordinate of the viewport's right edge. |
![]() | ViewportTop | Gets the y-coordinate of the viewport's top edge. |
![]() | ViewportWidth | Gets the width of the viewport. |
![]() | VisualSnapshot | Gets the view's visual snapshot. |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (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.


