| SettingsBinderDataBindSettingTSettingValue Method (RadioButton, TSettingValue, ISettingsGroup, String) |
Databinds a setting to a radiobutton with a specific datasource update mode, setting the control font to bold when the settings is not inherited.
Namespace: Sdl.Desktop.IntegrationApiAssembly: Sdl.Desktop.IntegrationApi (in Sdl.Desktop.IntegrationApi.dll) Version: 4.0.0.0 (4.2.2764.0)
Syntaxpublic static Binding DataBindSetting<TSettingValue>(
RadioButton[] radioButtons,
TSettingValue[] values,
ISettingsGroup settingsGroup,
string settingId
)
where TSettingValue : IComparable
Public Shared Function DataBindSetting(Of TSettingValue As IComparable) (
radioButtons As RadioButton(),
values As TSettingValue(),
settingsGroup As ISettingsGroup,
settingId As String
) As Binding
public:
generic<typename TSettingValue>
where TSettingValue : IComparable
static Binding^ DataBindSetting(
array<RadioButton^>^ radioButtons,
array<TSettingValue>^ values,
ISettingsGroup^ settingsGroup,
String^ settingId
)
static member DataBindSetting :
radioButtons : RadioButton[] *
values : 'TSettingValue[] *
settingsGroup : ISettingsGroup *
settingId : string -> Binding when 'TSettingValue : IComparable
Parameters
- radioButtons
- Type: System.Windows.FormsRadioButton
The radiobutton to which to bind the setting. - values
- Type: TSettingValue
The values to which radio button should be bind. - settingsGroup
- Type: Sdl.Core.SettingsISettingsGroup
The settings group that owns the setting. - settingId
- Type: SystemString
The id of the setting.
Type Parameters
- TSettingValue
- The value type of the setting.
Return Value
Type:
BindingThe binding between the property value of an object and property value of a control.
See Also
Comments