Skip to main content
All docs
V25.1
  • TdxOfficeSearchBoxProperties.UseStrokeColorForGlyphPalette Property

    Switches the assigned vector glyph between contrast and lightweight display modes.

    Declaration

    property UseStrokeColorForGlyphPalette: Boolean read; write; default False;

    Property Value

    Type Default Description
    Boolean False
    False
    Default. Contrast Mode. The editor uses text color to fill enclosed shapes of the assigned vector glyph.
    True
    Lightweight Mode. The editor uses text color to draw outlines (strokes) of the assigned vector glyph. Enclosed glyph shapes are transparent.

    Remarks

    SVG images consist of elements with stroke (shape outline) and fill (shape fill) attributes drawn according to a palette defined at the image level or externally. All SVG icons shipped with the DevExpress Icon Library define named colors as CSS Styles for fill and stroke attributes:

    VCL Bars: An Original SVG Icon

    The TdxOfficeSearchBox editor overrides a built-in palette of an SVG image assigned to the Glyph property and applies text color to all image elements with the fill attribute; image elements with stroke elements are not drawn. This predefined rendering technique maintains high glyph contrast regardless of the active skin and palette:

    VCL Bars: An Office Search Box with Text and a Vector Glyph

    Property Value Examples

    False

    Contrast Mode. Draws a contrast glyph with multiple elements filled with text color.

    VCL Bars: A Vector Glyph with Drawn Fill Shapes (Contrast Glyph)

    True

    Lightweight Mode. Draws a lightweight glyph (outlines only).

    VCL Bars: A Vector Glyph with Drawn Strokes (Lightweight Glyph)

    Default Value

    The UseStrokeColorForGlyphPalette property’s default value is False.

    See Also