Skip to main content
.NET Framework Class Library
HostVisual Class

Represents a Visual object that can be connected anywhere to a parent visual tree.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Syntax
Public Class HostVisual _
	Inherits [%$TOPIC/ms619164_en-us_VS_110_3_0_0_0_0%]
public class HostVisual : [%$TOPIC/ms619164_en-us_VS_110_3_0_1_0_0%]
public ref class HostVisual : public [%$TOPIC/ms619164_en-us_VS_110_3_0_2_0_0%]
type HostVisual =  
    class 
        inherit [%$TOPIC/ms619164_en-us_VS_110_3_0_3_0_0%] 
    end
public class HostVisual extends [%$TOPIC/ms619164_en-us_VS_110_3_0_4_0_0%]
<HostVisual .../>

The HostVisual type exposes the following members.

Constructors
  NameDescription
Public method HostVisualInitializes a new instance of the HostVisual class.
Top
Properties
  NameDescription
Public property BitmapEffectObsolete. Gets or sets a BitmapEffect value for the ContainerVisual. (Inherited from ContainerVisual.)
Public property BitmapEffectInputObsolete. Gets or sets a BitmapEffectInput value for the ContainerVisual. (Inherited from ContainerVisual.)
Public property CacheModeGets or sets a cached representation of the ContainerVisual. (Inherited from ContainerVisual.)
Public property ChildrenGets the child collection of the ContainerVisual. (Inherited from ContainerVisual.)
Public property ClipGets or sets the clipping region of the ContainerVisual. (Inherited from ContainerVisual.)
Public property ContentBoundsGets the bounding box for the contents of the ContainerVisual. (Inherited from ContainerVisual.)
Public property DependencyObjectTypeGets the DependencyObjectType that wraps the CLR type of this instance.  (Inherited from DependencyObject.)
Public property DescendantBoundsGets the union of all the content bounding boxes for all of the descendants of the ContainerVisual, but not including the contents of the ContainerVisual. (Inherited from ContainerVisual.)
Public property DispatcherGets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public property EffectGets or sets the bitmap effect to apply to the ContainerVisual. (Inherited from ContainerVisual.)
Public property IsSealedGets a value that indicates whether this instance is currently sealed (read-only). (Inherited from DependencyObject.)
Public property OffsetGets or sets the offset value of the ContainerVisual from its reference point. (Inherited from ContainerVisual.)
Public property OpacityGets or sets the opacity of the ContainerVisual, based on 0=transparent, 1=opaque. (Inherited from ContainerVisual.)
Public property OpacityMaskGets or sets a brush that specifies a possible opacity mask for the ContainerVisual. (Inherited from ContainerVisual.)
Public property ParentGets the parent Visual for the ContainerVisual. (Inherited from ContainerVisual.)
Public property TransformGets or sets the transform that is applied to the ContainerVisual. (Inherited from ContainerVisual.)
Protected property VisualBitmapEffectObsolete. Gets or sets the BitmapEffect value for the Visual. (Inherited from Visual.)
Protected property VisualBitmapEffectInputObsolete. Gets or sets the BitmapEffectInput value for the Visual. (Inherited from Visual.)
Protected property VisualBitmapScalingModeGets or sets the BitmapScalingMode for the Visual. (Inherited from Visual.)
Protected property VisualCacheModeGets or sets a cached representation of the Visual. (Inherited from Visual.)
Protected property VisualChildrenCountGets the number of children for the ContainerVisual. (Inherited from ContainerVisual.)
Protected property VisualClearTypeHintGets or sets the ClearTypeHint that determines how ClearType is rendered in the Visual. (Inherited from Visual.)
Protected property VisualClipGets or sets the clip region of the Visual as a Geometry value. (Inherited from Visual.)
Protected property VisualEdgeModeGets or sets the edge mode of the Visual as an EdgeMode value. (Inherited from Visual.)
Protected property VisualEffectGets or sets the bitmap effect to apply to the Visual. (Inherited from Visual.)
Protected property VisualOffsetGets or sets the offset value of the visual object. (Inherited from Visual.)
Protected property VisualOpacityGets or sets the opacity of the Visual. (Inherited from Visual.)
Protected property VisualOpacityMaskGets or sets the Brush value that represents the opacity mask of the Visual. (Inherited from Visual.)
Protected property VisualParentGets the visual tree parent of the visual object. (Inherited from Visual.)
Protected property VisualScrollableAreaClipGets or sets a clipped scrollable area for the Visual. (Inherited from Visual.)
Protected property VisualTextHintingModeGets or sets the TextHintingMode of the Visual. (Inherited from Visual.)
Protected property VisualTextRenderingModeGets or sets the TextRenderingMode of the Visual. (Inherited from Visual.)
Protected property VisualTransformGets or sets the Transform value for the Visual. (Inherited from Visual.)
Protected property VisualXSnappingGuidelinesGets or sets the x-coordinate (vertical) guideline collection. (Inherited from Visual.)
Protected property VisualYSnappingGuidelinesGets or sets the y-coordinate (horizontal) guideline collection. (Inherited from Visual.)
Public property XSnappingGuidelinesGets or sets the X (horizontal) guideline for the ContainerVisual. (Inherited from ContainerVisual.)
Public property YSnappingGuidelinesGets or sets the Y (vertical) guideline for the ContainerVisual. (Inherited from ContainerVisual.)
Top
Methods
  NameDescription
Protected method AddVisualChildDefines the parent-child relationship between two visuals. (Inherited from Visual.)
Public method CheckAccessDetermines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Public method ClearValue(DependencyProperty)Clears the local value of a property. The property to be cleared is specified by a DependencyProperty identifier. (Inherited from DependencyObject.)
Public method ClearValue(DependencyPropertyKey)Clears the local value of a read-only property. The property to be cleared is specified by a DependencyPropertyKey. (Inherited from DependencyObject.)
Public method CoerceValueCoerces the value of the specified dependency property. This is accomplished by invoking any CoerceValueCallback function specified in property metadata for the dependency property as it exists on the calling DependencyObject. (Inherited from DependencyObject.)
Public method EqualsDetermines whether a provided DependencyObject is equivalent to the current DependencyObject. (Inherited from DependencyObject.)
Protected method FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method FindCommonVisualAncestorReturns the common ancestor of two visual objects. (Inherited from Visual.)
Public method GetHashCodeGets a hash code for this DependencyObject. (Inherited from DependencyObject.)
Public method GetLocalValueEnumeratorCreates a specialized enumerator for determining which dependency properties have locally set values on this DependencyObject. (Inherited from DependencyObject.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method GetValueReturns the current effective value of a dependency property on this instance of a DependencyObject. (Inherited from DependencyObject.)
Protected method GetVisualChildReturns a specified child Visual for the parent ContainerVisual. (Inherited from ContainerVisual.)
Public method HitTest(Point)Returns the top-most visual object of a hit test by specifying a Point. (Inherited from ContainerVisual.)
Public method HitTest(HitTestFilterCallback, HitTestResultCallback, HitTestParameters)Initiates a hit test on the ContainerVisual by using the HitTestFilterCallback and HitTestResultCallback objects. (Inherited from ContainerVisual.)
Protected method HitTestCore(GeometryHitTestParameters)Implements HitTestCore to supply base hit testing behavior (returning GeometryHitTestParameters). (Overrides VisualHitTestCore(GeometryHitTestParameters).)
Protected method HitTestCore(PointHitTestParameters)Implements HitTestCore to supply base hit testing behavior (returning PointHitTestParameters). (Overrides VisualHitTestCore(PointHitTestParameters).)
Public method InvalidatePropertyRe-evaluates the effective value for the specified dependency property (Inherited from DependencyObject.)
Public method IsAncestorOfDetermines whether the visual object is an ancestor of the descendant visual object. (Inherited from Visual.)
Public method IsDescendantOfDetermines whether the visual object is a descendant of the ancestor visual object. (Inherited from Visual.)
Protected method MemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnPropertyChangedInvoked whenever the effective value of any dependency property on this DependencyObject has been updated. The specific dependency property that changed is reported in the event data. (Inherited from DependencyObject.)
Protected method OnVisualChildrenChangedCalled when the VisualCollection of the visual object is modified. (Inherited from Visual.)
Protected method OnVisualParentChangedCalled when the parent of the visual object is changed. (Inherited from Visual.)
Public method PointFromScreenConverts a Point in screen coordinates into a Point that represents the current coordinate system of the Visual. (Inherited from Visual.)
Public method PointToScreenConverts a Point that represents the current coordinate system of the Visual into a Point in screen coordinates. (Inherited from Visual.)
Public method ReadLocalValueReturns the local value of a dependency property, if it exists. (Inherited from DependencyObject.)
Protected method RemoveVisualChildRemoves the parent-child relationship between two visuals. (Inherited from Visual.)
Public method SetCurrentValueSets the value of a dependency property without changing its value source. (Inherited from DependencyObject.)
Public method SetValue(DependencyProperty, Object)Sets the local value of a dependency property, specified by its dependency property identifier. (Inherited from DependencyObject.)
Public method SetValue(DependencyPropertyKey, Object)Sets the local value of a read-only dependency property, specified by the DependencyPropertyKey identifier of the dependency property. (Inherited from DependencyObject.)
Protected method ShouldSerializePropertyReturns a value that indicates whether serialization processes should serialize the value for the provided dependency property. (Inherited from DependencyObject.)
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Public method TransformToAncestor(Visual)Returns a transform that can be used to transform coordinates from the Visual to the specified Visual ancestor of the visual object. (Inherited from Visual.)
Public method TransformToAncestor(Visual3D)Returns a transform that can be used to transform coordinates from the Visual to the specified Visual3D ancestor of the visual object. (Inherited from Visual.)
Public method TransformToDescendantReturns a transform that can be used to transform coordinates from the Visual to the specified visual object descendant. (Inherited from Visual.)
Public method TransformToVisualReturns a transform that can be used to transform coordinates from the Visual to the specified visual object. (Inherited from Visual.)
Public method VerifyAccessEnforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top
Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
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.