ThermalLabel SDK for .NET
Show / Hide Table of Contents

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()
Namespace: Neodynamic.Windows.ThermalLabelEditor
Assembly: cs.temp.dll.dll
Syntax
public static class ThermalLabelEditorAppearanceExtensions

Methods

ApplyAppearanceSettings(WinFormsEditor, 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 WinFormsEditor editor, ThermalLabelEditorAppearanceSettings settings)
Parameters
Type Name Description
WinFormsEditor editor
ThermalLabelEditorAppearanceSettings settings

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
Type Name Description
WpfEditor editor
ThermalLabelEditorAppearanceSettings settings

ApplyAppearanceSettingsJson(WinFormsEditor, String)

Applies a JSON string (as produced by GetAppearanceSettingsJson(WinFormsEditor)) to the editor.

Declaration
public static void ApplyAppearanceSettingsJson(this WinFormsEditor editor, string json)
Parameters
Type Name Description
WinFormsEditor editor
System.String json

ApplyAppearanceSettingsJson(WpfEditor, String)

Applies a JSON string (as produced by GetAppearanceSettingsJson(WpfEditor)) to the editor.

Declaration
public static void ApplyAppearanceSettingsJson(this WpfEditor editor, string json)
Parameters
Type Name Description
WpfEditor editor
System.String json

GetAppearanceSettings(WinFormsEditor)

Captures the current color/image/icon related properties of editor into a serializable ThermalLabelEditorAppearanceSettings instance.

Declaration
public static ThermalLabelEditorAppearanceSettings GetAppearanceSettings(this WinFormsEditor editor)
Parameters
Type Name Description
WinFormsEditor editor
Returns
Type Description
ThermalLabelEditorAppearanceSettings

GetAppearanceSettings(WpfEditor)

Captures the current color/image/icon related properties of editor into a serializable ThermalLabelEditorAppearanceSettings instance.

Declaration
public static ThermalLabelEditorAppearanceSettings GetAppearanceSettings(this WpfEditor editor)
Parameters
Type Name Description
WpfEditor editor
Returns
Type Description
ThermalLabelEditorAppearanceSettings

GetAppearanceSettingsJson(WinFormsEditor)

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

LoadAppearanceSettings(WinFormsEditor, 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

SaveAppearanceSettings(WinFormsEditor, String)

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
Back to top Copyright © 2003- Neodynamic SRL
www.neodynamic.com