Method SetPropertyMinMax
SetPropertyMinMax(IPropertyGridItem, TypeCode)
Sets minimal and maximal values of the numeric property.
public virtual void SetPropertyMinMax(IPropertyGridItem prop, TypeCode code)
Parameters
prop
IPropertyGridItemProperty item.
code
TypeCodeObject type from which min and max values will be applied.
SetPropertyMinMax(IPropertyGridItem, object?, object?)
Sets minimal and maximal values of the numeric property.
public virtual void SetPropertyMinMax(IPropertyGridItem prop, object? min, object? max = null)
Parameters
prop
IPropertyGridItemProperty item.
min
objectMinimal property value.
max
objectMaximal property value.
Remarks
If null
is passed in the max
or min
parameter, limit is not set.