Classe VisualTreeHelper
Namespace: System.Windows.Media
Assembly: PresentationCore (em PresentationCore.dll)
O tipo VisualTreeHelper expõe os membros a seguir.
| Nome | Descrição | |
|---|---|---|
![]() ![]() | GetBitmapEffect | |
![]() ![]() | GetBitmapEffectInput | |
![]() ![]() | GetCacheMode | |
![]() ![]() | GetChild | |
![]() ![]() | GetChildrenCount | |
![]() ![]() | GetClip | |
![]() ![]() | GetContentBounds(Visual) | |
![]() ![]() | GetContentBounds(Visual3D) | |
![]() ![]() | GetDescendantBounds(Visual) | |
![]() ![]() | GetDescendantBounds(Visual3D) | |
![]() ![]() | GetDrawing | |
![]() ![]() | GetEdgeMode | |
![]() ![]() | GetEffect | |
![]() ![]() | GetOffset | |
![]() ![]() | GetOpacity | |
![]() ![]() | GetOpacityMask | |
![]() ![]() | GetParent | |
![]() ![]() | GetTransform | |
![]() ![]() | GetXSnappingGuidelines | |
![]() ![]() | GetYSnappingGuidelines | |
![]() ![]() | HitTest(Visual, Point) | |
![]() ![]() | HitTest(Visual, HitTestFilterCallback, HitTestResultCallback, HitTestParameters) | |
![]() ![]() | HitTest(Visual3D, HitTestFilterCallback, HitTestResultCallback, HitTestParameters3D) |
// Enumerate all the descendants of the visual object. static public void EnumVisual(Visual myVisual) { for (int i = 0; i < VisualTreeHelper.GetChildrenCount(myVisual); i++) { // Retrieve child visual at specified index value. Visual childVisual = (Visual)VisualTreeHelper.GetChild(myVisual, i); // Do processing of the child visual object. // Enumerate children of the child visual object. EnumVisual(childVisual); } }
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Função Server Core sem suporte), Windows Server 2008 R2 (Função Server Core com suporte com o SP1 ou posterior, Itanium sem suporte)
O .NET Framework não oferece suporte a todas as versões de cada plataforma. Para obter uma lista das versões com suporte, consulte .Requisitos de sistema do NET Framework.

