Name
NotifyParentPropertyAttribute
Synopsis
You can mark a property with this attribute if it should cause its
parent property to be updated when updated itself. The
NotifyParent
property determines whether the
parent should be notified.
For example, the System.Drawing.Size
type has two
child properties, Width
and
Height
. If either of these properties is updated,
the parent should be updated.
public sealed class NotifyParentPropertyAttribute : Attribute { // Public Constructors public NotifyParentPropertyAttribute(bool notifyParent); // Public Static Fields public static readonly NotifyParentPropertyAttribute Default; // =System.ComponentModel.NotifyParentPropertyAttribute public static readonly NotifyParentPropertyAttribute No; // =System.ComponentModel.NotifyParentPropertyAttribute public static readonly NotifyParentPropertyAttribute Yes; // =System.ComponentModel.NotifyParentPropertyAttribute // Public Instance Properties public bool NotifyParent{get; } // Public Instance Methods public override bool Equals(object obj); // overrides Attribute public override int GetHashCode(); // overrides Attribute public override bool IsDefaultAttribute(); // overrides Attribute }
Hierarchy
System.Object
→ System.Attribute → NotifyParentPropertyAttribute
Valid On
Property
Get .NET Windows Forms in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.