次の方法で共有


IXRRadioButton::SetGroupName (Compact 2013)

3/28/2014

This method sets the name that specifies which radio-button controls are mutually exclusive.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetGroupName(
    const WCHAR* Value
) = 0;

Parameters

  • Value
    [in] Pointer to a WCHAR string that indicates a group name that radio-button controls have in common to indicate that they are mutually exclusive.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

When two or more IXRRadioButton controls have the same string for GroupName, a user can select (check) only one IXRRadioButton at a time, regardless of the radio-button control's parent element. If no GroupName is specified, the IXRRadioButton is grouped with other IXRRadioButton controls that are under the same parent element.

.NET Framework Equivalent

System.Windows.Controls.RadioButton.GroupName

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRRadioButton
IXRRadioButton::GetGroupName