Skip to main content
A newer version of this page is available.
All docs
V18.2

FilterControl.GetClauseImageByType(ISkinProvider, String, ObjectState) Method

Retrieves icons used by FilterControl for specific filtering clauses in the specific skin.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v18.2.dll

Declaration

public static Image GetClauseImageByType(
    ISkinProvider skinProvider,
    string sType,
    ObjectState state
)

Parameters

Name Type Description
skinProvider DevExpress.Skins.ISkinProvider

A UserLookAndFeel object that specifies a skin for which a clause icon should be retrieved.

sType String

A String value that specifies the clause for which an icon needs to be returned.

state DevExpress.Utils.Drawing.ObjectState

An ObjectState enumeration value that specifies the state (normal, hovered, pressed, etc.) for which a clause icon should be retrieved.

Returns

Type Description
Image

An Image used by FilterControl for a given clause.

Remarks

The figure below illustrates three sample buttons with FilterControl clause icons.

FilterControl - Clause Images


simpleButton1.Image = FilterControl.GetClauseImageByType(this.LookAndFeel, "Equals", ObjectState.Normal);
simpleButton2.Image = FilterControl.GetClauseImageByType(this.LookAndFeel, "Less", ObjectState.Normal);
simpleButton3.Image = FilterControl.GetClauseImageByType(this.LookAndFeel, "Between", ObjectState.Normal);
See Also