Skip to main content
A newer version of this page is available. .

CheckBoxGlyphCollection.Add(CheckState, ImageSource) Method

Adds a glyph image for the specified check state.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v19.2.Core.dll

Declaration

public void Add(
    CheckState checkState,
    ImageSource imageSource
)

Parameters

Name Type Description
checkState CheckState

The control’s check state

imageSource ImageSource

The glyph image

Remarks

The code sample below illustrates how to create a CheckBoxBrick object and set custom glyphs for its states.

using DevExpress.XtraPrinting;
using DevExpress.XtraPrinting.Drawing;
// ...
public CheckBoxBrick SetCustomGlyphs(CheckBoxBrick cBrick) {
    cBrick.CustomGlyphs[CheckState.Checked] = ImageSource.FromFile("checkbox_checked.svg");
    cBrick.CustomGlyphs[CheckState.Unchecked] = ImageSource.FromFile("checkbox_unchecked.svg");
    cBrick.CustomGlyphs[CheckState.Indeterminate] = ImageSource.FromFile("checkbox_indeterminate.svg");
    return cBrick;
}
See Also