Class ProfileConfigurationIcon
Represents the icon of a ProfileConfiguration
Implements
Namespace: Artemis.Core
Assembly: Artemis.Core.dll
Syntax
public class ProfileConfigurationIcon : CorePropertyChanged, IStorageModel
Properties
Fill
Gets or sets a boolean indicating whether or not this icon should be filled.
Declaration
public bool Fill { get; set; }
Property Value
Type | Description |
---|---|
bool |
IconName
Gets the name of the icon if IconType is MaterialIcon
Declaration
public string? IconName { get; }
Property Value
Type | Description |
---|---|
string |
IconType
Gets the type of icon this profile configuration uses
Declaration
public ProfileConfigurationIconType IconType { get; }
Property Value
Type | Description |
---|---|
ProfileConfigurationIconType |
Methods
GetIconStream()
Creates a copy of the stream containing the icon
Declaration
public Stream? GetIconStream()
Returns
Type | Description |
---|---|
Stream | A stream containing the icon |
Load()
Loads the model from its associated entity
Declaration
public void Load()
OnIconUpdated()
Invokes the IconUpdated event
Declaration
protected virtual void OnIconUpdated()
Save()
Saves the model to its associated entity
Declaration
public void Save()
SetIconByName(string)
Updates the IconName to the provided value and changes the IconType is MaterialIcon
Declaration
public void SetIconByName(string iconName)
Parameters
Type | Name | Description |
---|---|---|
string | iconName | The name of the icon |
SetIconByStream(Stream)
Updates the stream returned by GetIconStream() to the provided stream
Declaration
public void SetIconByStream(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream to copy |
Events
IconUpdated
Occurs when the icon was updated
Declaration
public event EventHandler? IconUpdated
Event Type
Type | Description |
---|---|
EventHandler |