Share via


ViewItem Class

An abstract class that enables interaction with view objects.

Inheritance Hierarchy

System.Object
  Microsoft.Windows.Design.Interaction.ViewItem

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public MustInherit Class ViewItem
public abstract class ViewItem
public ref class ViewItem abstract
[<AbstractClass>]
type ViewItem =  class end
public abstract class ViewItem

The ViewItem type exposes the following members.

Constructors

  Name Description
Protected method ViewItem Initializes a new instance of the ViewItem class.

Top

Properties

  Name Description
Public property FlowDirection Gets the FlowDirection property of the view.
Public property IsOffscreen Gets a value that indicates whether the element is off the screen.
Public property IsVisible Gets a value that indicates whether an element is visible.
Public property ItemType Gets the type of the underlying dependency object that represents this view.
Public property LayoutTransform Gets the layout transform of the current ViewItem.
Public property LogicalChildren Gets a collection of the immediate logical children of the current ViewItem.
Public property LogicalParent Gets the logical parent of the current ViewItem.
Public property Offset Gets the offset of the view.
Public property PlatformObject Gets the underlying dependency object that represents this view.
Public property RenderSize Gets the render size of the view.
Public property RenderSizeBounds Gets the layout rectangle for the view.
Public property SelectionFrameBounds Gets the bounds of the selection frame.
Public property Transform Gets the transform value for the current ViewItem.
Public property Visibility Gets the Visibility property of the view.
Public property VisualChildren Gets a collection of the immediate visual children of this ViewItem.
Public property VisualParent Gets the visual parent of the current ViewItem.

Top

Methods

  Name Description
Public method Equals Determines whether the specified ViewItem is equal to the current ViewItem. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a ViewItem. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HitTest Initiates a hit test on the ViewItem, with caller-defined HitTestFilterCallback and HitTestResultCallback methods.
Public method IsDescendantOf(Visual) Gets a value that indicates whether the visual object is a descendant of the specified visual object.
Public method IsDescendantOf(ViewItem) Determines whether the visual object is a descendant of the ancestor visual object.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method PointToScreen Converts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TransformFromVisual Returns a transform that can be used to transform coordinates from the specified visual object to the view.
Public method TransformToView Returns a transform that can be used to transform coordinates from the view to the specified view object.
Public method TransformToVisual Returns a transform that can be used to transform coordinates from the view to the specified visual object.
Public method UpdateLayout Calls the UpdateLayout method on the underlying platform object.

Top

Operators

  Name Description
Public operatorStatic member Equality Determines whether the specified ViewItem instances are considered equal.
Public operatorStatic member Inequality Determines whether the specified ViewItem instances are considered not equal.

Top

Thread Safety

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

See Also

Reference

Microsoft.Windows.Design.Interaction Namespace