Class ThermalLabelEditorAppearanceExtensions
Adds JSON save/load support for every color-, image- and icon-related property of ThermalLabelEditor.
Inheritance
System.Object
ThermalLabelEditorAppearanceExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: cs.temp.dll.dll
Syntax
public static class ThermalLabelEditorAppearanceExtensions
Methods
Applies every non-null value in settings to editor.
Properties left as null in settings are left untouched, so
partial "theme" files are supported.
Declaration
public static void ApplyAppearanceSettings(this WinFormsEditor editor, ThermalLabelEditorAppearanceSettings settings)
Parameters
ApplyAppearanceSettings(WpfEditor, ThermalLabelEditorAppearanceSettings)
Applies every non-null value in settings to editor.
Properties left as null in settings are left untouched, so
partial "theme" files are supported.
Declaration
public static void ApplyAppearanceSettings(this WpfEditor editor, ThermalLabelEditorAppearanceSettings settings)
Parameters
Declaration
public static void ApplyAppearanceSettingsJson(this WinFormsEditor editor, string json)
Parameters
| Type |
Name |
Description |
| WinFormsEditor |
editor |
|
| System.String |
json |
|
ApplyAppearanceSettingsJson(WpfEditor, String)
Declaration
public static void ApplyAppearanceSettingsJson(this WpfEditor editor, string json)
Parameters
| Type |
Name |
Description |
| WpfEditor |
editor |
|
| System.String |
json |
|
Declaration
public static ThermalLabelEditorAppearanceSettings GetAppearanceSettings(this WinFormsEditor editor)
Parameters
| Type |
Name |
Description |
| WinFormsEditor |
editor |
|
Returns
GetAppearanceSettings(WpfEditor)
Declaration
public static ThermalLabelEditorAppearanceSettings GetAppearanceSettings(this WpfEditor editor)
Parameters
| Type |
Name |
Description |
| WpfEditor |
editor |
|
Returns
Captures the editor's appearance as a JSON string.
Declaration
public static string GetAppearanceSettingsJson(this WinFormsEditor editor)
Parameters
| Type |
Name |
Description |
| WinFormsEditor |
editor |
|
Returns
| Type |
Description |
| System.String |
|
GetAppearanceSettingsJson(WpfEditor)
Captures the editor's appearance as a JSON string.
Declaration
public static string GetAppearanceSettingsJson(this WpfEditor editor)
Parameters
| Type |
Name |
Description |
| WpfEditor |
editor |
|
Returns
| Type |
Description |
| System.String |
|
Reads a JSON file and applies it to the editor.
Declaration
public static void LoadAppearanceSettings(this WinFormsEditor editor, string filePath)
Parameters
| Type |
Name |
Description |
| WinFormsEditor |
editor |
|
| System.String |
filePath |
|
LoadAppearanceSettings(WpfEditor, String)
Reads a JSON file and applies it to the editor.
Declaration
public static void LoadAppearanceSettings(this WpfEditor editor, string filePath)
Parameters
| Type |
Name |
Description |
| WpfEditor |
editor |
|
| System.String |
filePath |
|
Captures the editor's appearance and writes it to filePath as JSON.
Declaration
public static void SaveAppearanceSettings(this WinFormsEditor editor, string filePath)
Parameters
| Type |
Name |
Description |
| WinFormsEditor |
editor |
|
| System.String |
filePath |
|
SaveAppearanceSettings(WpfEditor, String)
Captures the editor's appearance and writes it to filePath as JSON.
Declaration
public static void SaveAppearanceSettings(this WpfEditor editor, string filePath)
Parameters
| Type |
Name |
Description |
| WpfEditor |
editor |
|
| System.String |
filePath |
|