Method DoActionOnProperties
DoActionOnProperties<T>(IEnumerable<IPropertyGridItem>, Action<IPropertyGridItem, T>, T, bool)
Executes specified action for all property items in props
collection.
public virtual void DoActionOnProperties<T>(IEnumerable<IPropertyGridItem> props, Action<IPropertyGridItem, T> action, T prmValue, bool suspendUpdate = true)
Parameters
props
IEnumerable<IPropertyGridItem>Collection of the properties.
action
Action<IPropertyGridItem, T>Action to execute.
prmValue
TValue of the first parameter.
suspendUpdate
boolif
true
, updates will be suspended.
Type Parameters
T
Type of the action parameter.
DoActionOnProperties<T1, T2>(IEnumerable<IPropertyGridItem>, Action<IPropertyGridItem, T1, T2>, T1, T2, bool)
Executes specified action for all property items in props
collection.
public virtual void DoActionOnProperties<T1, T2>(IEnumerable<IPropertyGridItem> props, Action<IPropertyGridItem, T1, T2> action, T1 prmValue1, T2 prmValue2, bool suspendUpdate = true)
Parameters
props
IEnumerable<IPropertyGridItem>Collection of the properties.
action
Action<IPropertyGridItem, T1, T2>Action to execute.
prmValue1
T1Value of the first parameter.
prmValue2
T2Value of the second parameter.
suspendUpdate
boolif
true
, updates will be suspended.
Type Parameters
T1
Type of the first action parameter.
T2
Type of the second action parameter.