Condividi tramite


ExtensionMethods Class

Microsoft internal use only.

Inheritance Hierarchy

Object
  Microsoft.VisualStudio.PlatformUI.ExtensionMethods

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public NotInheritable Class ExtensionMethods
public static class ExtensionMethods
[ExtensionAttribute]
public ref class ExtensionMethods abstract sealed
[<AbstractClass>]
[<Sealed>]
type ExtensionMethods =  class end
public final class ExtensionMethods

The ExtensionMethods type exposes the following members.

Methods

  Name Description
Public methodStatic member AcquireWin32Focus Microsoft internal use only.
Public methodStatic member AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler) Adds a handler that is called when property changes on instance.
Public methodStatic member AddPropertyChangeHandler<T>(T, DependencyProperty, EventHandler, Type) Adds a handler that is called when property changes on instance.
Public methodStatic member CopyTo Microsoft internal use only.
Public methodStatic member FindAncestor<TAncestorType>(Visual) Finds the first ancestor of a given type in the logical or visual tree.
Public methodStatic member FindAncestor<TElementType>(TElementType, Func<TElementType, TElementType>, Func<TElementType, Boolean>)
Public methodStatic member FindAncestor<TAncestorType, TElementType>(TElementType, Func<TElementType, TElementType>)
Public methodStatic member FindAncestorOrSelf<TAncestorType>(Visual) Finds the first ancestor of a given type in the logical or visual tree, or the object itself if it matches in type.
Public methodStatic member FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType, TElementType>, Func<TElementType, Boolean>)
Public methodStatic member FindAncestorOrSelf<TAncestorType, TElementType>(TElementType, Func<TElementType, TElementType>)
Public methodStatic member FindCommonAncestor(DependencyObject, DependencyObject) Microsoft internal use only.
Public methodStatic member FindCommonAncestor<T>(T, T, Func<T, T>)
Public methodStatic member FindDescendant(DependencyObject, Predicate<DependencyObject>) Microsoft internal use only.
Public methodStatic member FindDescendant<T>(DependencyObject) Microsoft internal use only.
Public methodStatic member FindDescendantReverse<T> Microsoft internal use only.
Public methodStatic member FindDescendants<T> Microsoft internal use only.
Public methodStatic member FindDescendantsReverse<T> Microsoft internal use only.
Public methodStatic member GetVisualOrLogicalParent Microsoft internal use only.
Public methodStatic member IsAncestorOf<TElementType>
Public methodStatic member IsClipped Determines whether the element's text is clipped by a parent ScrollViewer (the element can still be scrolled to view the clipped text)
Public methodStatic member IsConnectedToPresentationSource Microsoft internal use only.
Public methodStatic member IsLogicalAncestorOf Microsoft internal use only.
Public methodStatic member IsNearlyEqual Microsoft internal use only.
Public methodStatic member IsNonreal Microsoft internal use only.
Public methodStatic member IsSignificantlyGreaterThan Determines whether the first value is significantly greater than the second value.
Public methodStatic member IsSignificantlyLessThan Determines whether the first value is significantly less than the second value.
Public methodStatic member IsTextTrimmed Microsoft internal use only.
Public methodStatic member IsTopmost Microsoft internal use only.
Public methodStatic member IsTrimmed Microsoft internal use only.
Public methodStatic member RaiseEvent(EventHandler, Object) Microsoft internal use only.
Public methodStatic member RaiseEvent(NotifyCollectionChangedEventHandler, Object, NotifyCollectionChangedEventArgs) Microsoft internal use only.
Public methodStatic member RaiseEvent(CancelEventHandler, Object, CancelEventArgs) Microsoft internal use only.
Public methodStatic member RaiseEvent(PropertyChangedEventHandler, Object, PropertyChangedEventArgs) Microsoft internal use only.
Public methodStatic member RaiseEvent(PropertyChangingEventHandler, Object, PropertyChangingEventArgs) Microsoft internal use only.
Public methodStatic member RaiseEvent(EventHandler, Object, EventArgs) Microsoft internal use only.
Public methodStatic member RaiseEvent<TEventArgs>(EventHandler<TEventArgs>, Object, TEventArgs) Microsoft internal use only.
Public methodStatic member RemovePropertyChangeHandler<T>(T, DependencyProperty, EventHandler) Microsoft internal use only.
Public methodStatic member RemovePropertyChangeHandler<T>(T, DependencyProperty, EventHandler, Type) Microsoft internal use only.
Public methodStatic member ThrowIfNullOrEmpty Microsoft internal use only.
Public methodStatic member ToArgb Microsoft internal use only.
Public methodStatic member ToColorFromArgb Microsoft internal use only.
Public methodStatic member ToColorFromRgba Microsoft internal use only.
Public methodStatic member ToPOINTL Microsoft internal use only.
Public methodStatic member ToRgba Microsoft internal use only.
Public methodStatic member TraverseVisualTree<T> Microsoft internal use only.
Public methodStatic member TraverseVisualTreeReverse<T> Microsoft internal use only.

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.VisualStudio.PlatformUI Namespace