Table of Contents

Class ReadOnlyBoundToValueRule<TValue, TProperty>

Namespace
PaintDotNet.PropertySystem
Assembly
PaintDotNet.PropertySystem.dll

Defines a rule between two properties, Target and Source. When the Source property is equal to any of the given values, Target will be set to read-only, otherwise it will be set as writable.
If inverse is specified, then this is changed to: when the Source property is equal to any of the given values, Target will be set to writable, otherwise it will be set to read-only.

public sealed class ReadOnlyBoundToValueRule<TValue, TProperty> : PropertyCollectionRule, ICloneable where TProperty : Property<TValue>

Type Parameters

TValue
TProperty
Inheritance
ReadOnlyBoundToValueRule<TValue, TProperty>
Implements
Inherited Members

Constructors

ReadOnlyBoundToValueRule(Property, TProperty, TValue, bool)
ReadOnlyBoundToValueRule(Property, TProperty, TValue[], bool)
ReadOnlyBoundToValueRule(object, object, TValue, bool)
ReadOnlyBoundToValueRule(object, object, TValue[], bool)

Methods

Clone()
OnInitialized()