Skip to main content
You are viewing help content for pre-release software. This document and the features it describes are subject to change.
All docs
V26.2
  • Icon.ToString() Method

    Returns the string representation of the icon.

    Namespace: DevExpress.IconLibrary

    Assembly: DevExpress.Data.v26.2.dll

    Declaration

    public override string ToString()

    Returns

    Type Description
    String

    The string that contains the icon identifier and icon settings.

    Remarks

    The string contains the icon identifier followed by values of the Set, Palette, and Size properties separated by semicolons. Properties set to Default are omitted.

    // Example string
    
    "icon/add;Fluent;Size16"
    

    Use the Parse(String) or TryParse(String, out Icon) method to restore the icon from the string.

    See Also