WPF-DependencyObject

#region 程序集 WindowsBase, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// C:\Program Files\dotnet\packs\Microsoft.WindowsDesktop.App.Ref\10.0.9\ref\net10.0\WindowsBase.dll
#endregion

using System.Windows.Markup;
using System.Windows.Threading;

namespace System.Windows
{
    //
    // 摘要:
    //     Represents an object that participates in the dependency property system.
    [NameScopeProperty("NameScope", typeof(NameScope))]
    public class DependencyObject : DispatcherObject
    {
        //
        // 摘要:
        //     Initializes a new instance of the System.Windows.DependencyObject class.
        public DependencyObject();

        //
        // 摘要:
        //     Gets the System.Windows.DependencyObjectType that wraps the CLR type of this
        //     instance.
        //
        // 返回结果:
        //     A System.Windows.DependencyObjectType that wraps the CLR type of this instance.
        public DependencyObjectType DependencyObjectType { get; }
        //
        // 摘要:
        //     Gets a value that indicates whether this instance is currently sealed (read-only).
        //
        //
        // 返回结果:
        //     true if this instance is sealed; otherwise, false.
        public bool IsSealed { get; }

        //
        // 摘要:
        //     Clears the local value of a property. The property to be cleared is specified
        //     by a System.Windows.DependencyProperty identifier.
        //
        // 参数:
        //   dp:
        //     The dependency property to be cleared, identified by a System.Windows.DependencyProperty
        //     object reference.
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     Attempted to call System.Windows.DependencyObject.ClearValue(System.Windows.DependencyProperty)
        //     on a sealed System.Windows.DependencyObject.
        public void ClearValue(DependencyProperty dp);
        //
        // 摘要:
        //     Clears the local value of a read-only property. The property to be cleared is
        //     specified by a System.Windows.DependencyPropertyKey.
        //
        // 参数:
        //   key:
        //     The key for the dependency property to be cleared.
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     Attempted to call System.Windows.DependencyObject.ClearValue(System.Windows.DependencyProperty)
        //     on a sealed System.Windows.DependencyObject.
        public void ClearValue(DependencyPropertyKey key);
        //
        // 摘要:
        //     Coerces the value of the specified dependency property. This is accomplished
        //     by invoking any System.Windows.CoerceValueCallback function specified in property
        //     metadata for the dependency property as it exists on the calling System.Windows.DependencyObject.
        //
        //
        // 参数:
        //   dp:
        //     The identifier for the dependency property to coerce.
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     The specified dp or its value were invalid or do not exist.
        public void CoerceValue(DependencyProperty dp);
        //
        // 摘要:
        //     Determines whether a provided System.Windows.DependencyObject is equivalent to
        //     the current System.Windows.DependencyObject.
        //
        // 参数:
        //   obj:
        //     The System.Windows.DependencyObject to compare to the current instance.
        //
        // 返回结果:
        //     true if the two instances are the same; otherwise, false.
        public sealed override bool Equals(object obj);
        //
        // 摘要:
        //     Gets a hash code for this System.Windows.DependencyObject.
        //
        // 返回结果:
        //     A signed 32-bit integer hash code.
        public sealed override int GetHashCode();
        //
        // 摘要:
        //     Creates a specialized enumerator for determining which dependency properties
        //     have locally set values on this System.Windows.DependencyObject.
        //
        // 返回结果:
        //     A specialized local value enumerator.
        public LocalValueEnumerator GetLocalValueEnumerator();
        //
        // 摘要:
        //     Returns the current effective value of a dependency property on this instance
        //     of a System.Windows.DependencyObject.
        //
        // 参数:
        //   dp:
        //     The System.Windows.DependencyProperty identifier of the property to retrieve
        //     the value for.
        //
        // 返回结果:
        //     Returns the current effective value.
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     The specified dp or its value was invalid, or the specified dp does not exist.
        public object GetValue(DependencyProperty dp);
        //
        // 摘要:
        //     Re-evaluates the effective value for the specified dependency property.
        //
        // 参数:
        //   dp:
        //     The System.Windows.DependencyProperty identifier of the property to invalidate.
        public void InvalidateProperty(DependencyProperty dp);
        //
        // 摘要:
        //     Returns the local value of a dependency property, if it exists.
        //
        // 参数:
        //   dp:
        //     The System.Windows.DependencyProperty identifier of the property to retrieve
        //     the value for.
        //
        // 返回结果:
        //     Returns the local value, or returns the sentinel value System.Windows.DependencyProperty.UnsetValue
        //     if no local value is set.
        public object ReadLocalValue(DependencyProperty dp);
        //
        // 摘要:
        //     Sets the value of a dependency property without changing its value source.
        //
        // 参数:
        //   dp:
        //     The identifier of the dependency property to set.
        //
        //   value:
        //     The new local value.
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     Attempted to modify a read-only dependency property, or a property on a sealed
        //     System.Windows.DependencyObject.
        //
        //   T:System.ArgumentException:
        //     value was not the correct type as registered for the dp property.
        public void SetCurrentValue(DependencyProperty dp, object value);
        //
        // 摘要:
        //     Sets the local value of a dependency property, specified by its dependency property
        //     identifier.
        //
        // 参数:
        //   dp:
        //     The identifier of the dependency property to set.
        //
        //   value:
        //     The new local value.
        //
        // 异常:
        //   T:System.InvalidOperationException:
        //     Attempted to modify a read-only dependency property, or a property on a sealed
        //     System.Windows.DependencyObject.
        //
        //   T:System.ArgumentException:
        //     value was not the correct type as registered for the dp property.
        public void SetValue(DependencyProperty dp, object value);
        //
        // 摘要:
        //     Sets the local value of a read-only dependency property, specified by the System.Windows.DependencyPropertyKey
        //     identifier of the dependency property.
        //
        // 参数:
        //   key:
        //     The System.Windows.DependencyPropertyKey identifier of the property to set.
        //
        //   value:
        //     The new local value.
        public void SetValue(DependencyPropertyKey key, object value);
        //
        // 摘要:
        //     Invoked whenever the effective value of any dependency property on this System.Windows.DependencyObject
        //     has been updated. The specific dependency property that changed is reported in
        //     the event data.
        //
        // 参数:
        //   e:
        //     Event data that will contain the dependency property identifier of interest,
        //     the property metadata for the type, and old and new values.
        protected virtual void OnPropertyChanged(DependencyPropertyChangedEventArgs e);
        //
        // 摘要:
        //     Returns a value that indicates whether serialization processes should serialize
        //     the value for the provided dependency property.
        //
        // 参数:
        //   dp:
        //     The identifier for the dependency property that should be serialized.
        //
        // 返回结果:
        //     true if the dependency property that is supplied should be value-serialized;
        //     otherwise, false.
        protected internal virtual bool ShouldSerializeProperty(DependencyProperty dp);
    }
}

image

 

posted @ 2026-06-15 11:41  Tony.Jia  阅读(3)  评论(0)    收藏  举报