IBrick.SetProperties(Object[,]) Method

Sets property values for the class which implements the IBrick interface based on the specified properties array.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Data.v21.2.dll

Declaration

void SetProperties(
    object[,
    ] properties
)

Parameters

Name Type Description
properties Object[,]

A two-dimesional array that identifies property names and values to set.

Remarks

A properties object represents an array of properties to set to the class which implements the IBrick interface. The first dimension identifies the property name, the second identifies the property value.

Example

The following code demonstrates how to use the IBrick.SetProperties method. It sets three properties (Image, Sides, BackColor) to the appropriate values.

brick.SetProperties(new object[,] { {"Image", imageList.Images[0]}, {"Sides", _
    BorderSide.None}, {"BackColor", Color.Transparent} });

The following code snippets (auto-collected from DevExpress Examples) contain references to the SetProperties(Object[,]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also