Class SettingsGroup
Inheritance
System.Object
SettingsGroup
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.IEditableObject
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: Sdl.Core.Settings.dll
Syntax
public abstract class SettingsGroup : AbstractSettingsGroupBase, ISettingsGroup
Constructors
SettingsGroup()
Declaration
protected SettingsGroup()
Properties
Id
Declaration
public override string Id { get; set; }
Property Value
Type |
Description |
System.String |
|
Overrides
Parent
Declaration
public override ISettingsGroup Parent { get; }
Property Value
Overrides
SettingsBundle
Declaration
public override ISettingsBundle SettingsBundle { get; set; }
Property Value
Overrides
Methods
BeginEdit()
Declaration
public override void BeginEdit()
Overrides
CancelEdit()
Declaration
public override void CancelEdit()
Overrides
CollectSettings(ISettingsGroup, List<String>)
Declaration
protected override void CollectSettings(ISettingsGroup settingsGroup, List<string> keys)
Parameters
Type |
Name |
Description |
ISettingsGroup |
settingsGroup |
|
System.Collections.Generic.List<System.String> |
keys |
|
Overrides
ContainsSetting(String)
Declaration
public override bool ContainsSetting(string settingId)
Parameters
Type |
Name |
Description |
System.String |
settingId |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
EndEdit()
Declaration
public override void EndEdit()
Overrides
GetDefaultValue(String)
Declaration
protected virtual object GetDefaultValue(string settingId)
Parameters
Type |
Name |
Description |
System.String |
settingId |
|
Returns
Type |
Description |
System.Object |
|
GetSetting<T>(String)
Declaration
public override Setting<T> GetSetting<T>(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type Parameters
Overrides
GetSetting<T>(String, T)
Declaration
public override Setting<T> GetSetting<T>(string settingId, T defaultValue)
Parameters
Type |
Name |
Description |
System.String |
settingId |
|
T |
defaultValue |
|
Returns
Type Parameters
Overrides
Sdl.Core.Settings.AbstractSettingsGroupBase.GetSetting<T>(System.String, T)
GetSetting<T>(String, out T)
Declaration
public override bool GetSetting<T>(string settingId, out T value)
Parameters
Type |
Name |
Description |
System.String |
settingId |
|
T |
value |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Overrides
Sdl.Core.Settings.AbstractSettingsGroupBase.GetSetting<T>(System.String, T)
GetSetting<T>(String, out Setting<T>)
Declaration
public override bool GetSetting<T>(string settingId, out Setting<T> setting)
Parameters
Type |
Name |
Description |
System.String |
settingId |
|
Setting<T> |
setting |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Overrides
Sdl.Core.Settings.AbstractSettingsGroupBase.GetSetting<T>(System.String, Sdl.Core.Settings.Setting<T>)
GetSettingIds()
Declaration
public override IEnumerable<string> GetSettingIds()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
ImportSettings(ISettingsGroup)
Declaration
public override void ImportSettings(ISettingsGroup otherGroup)
Parameters
Overrides
OnInit(ISettingsBundle)
Declaration
protected virtual void OnInit(ISettingsBundle settingsBundle)
Parameters
parent_PropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void parent_PropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
System.ComponentModel.PropertyChangedEventArgs |
e |
|
Overrides
parent_SettingsChanged(Object, SettingsChangedEventArgs)
Declaration
protected override void parent_SettingsChanged(object sender, SettingsChangedEventArgs e)
Parameters
Overrides
RemoveSetting(String)
Declaration
public override bool RemoveSetting(string settingId)
Parameters
Type |
Name |
Description |
System.String |
settingId |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Reset()
Declaration
public override void Reset()
Overrides
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.IEditableObject