Back to Devexpress

CheckBoxGlyphCollection Class

corelibraries-devexpress-dot-xtraprinting-652fd3e9.md

latest2.6 KB
Original Source

CheckBoxGlyphCollection Class

Stores a custom glyph image for each checkbox state (Checked/Unchecked/Indeterminate).

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public class CheckBoxGlyphCollection :
    Collection<CheckBoxGlyph>
vb
Public Class CheckBoxGlyphCollection
    Inherits Collection(Of CheckBoxGlyph)

The following members return CheckBoxGlyphCollection objects:

Remarks

The CheckBoxBrick.CustomGlyphs property provides access to the CheckBoxGlyphCollection class members.

Example

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

csharp
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;
}
vb
Imports DevExpress.XtraPrinting
Imports DevExpress.XtraPrinting.Drawing
' ...
Public Function SetCustomGlyphs(ByVal cBrick As CheckBoxBrick) As CheckBoxBrick
    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
End Function

Inheritance

Object Collection<DevExpress.XtraPrinting.CheckBoxGlyph> CheckBoxGlyphCollection

See Also

CheckBoxGlyphCollection Members

DevExpress.XtraPrinting Namespace