DisplayStyle
Specifies which visual elements (image, text, or both) should be displayed in a control or element.
This enumeration is commonly used by RadControls to determine what content should be visible in buttons, menu items, toolbar items, and other elements that can display both images and text. The display style affects layout calculations and rendering behavior.
Definition
Fields
Specifies that only image content is rendered.
Image = 2
When set to Image, only the image content will be displayed. Any associated text will be hidden, and the layout will be optimized for image-only display.
Specifies that both image and text content are rendered.
ImageAndText = 3
When set to ImageAndText, both the image and text content will be displayed according to the layout configuration. The relative positioning of image and text is typically controlled by additional properties such as TextImageRelation.
Specifies that neither image nor text content is rendered.
None = 0
When set to None, the element will not display any image or text content, though it may still occupy space and display background, borders, or other visual elements.
Specifies that only text content is rendered.
Text = 1
When set to Text, only the text content will be displayed. Any associated images will be hidden, and the layout will be optimized for text-only display.