Table of Contents

Method DoActionOnProperties

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 T

Value of the first parameter.

suspendUpdate bool

if 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 T1

Value of the first parameter.

prmValue2 T2

Value of the second parameter.

suspendUpdate bool

if true, updates will be suspended.

Type Parameters

T1

Type of the first action parameter.

T2

Type of the second action parameter.