RadioButtons.property

Description

Properties that control the appearance and behavior of a column with the RadioButton edit style.

Applies to

Column controls

Syntax

DataWindow .NET dot notation:

(( RadioButton) colname.EditStyle).property [C#]
CType(colname.EditStyle, RadioButton).property [Visual Basic]

Describe and Modify argument:

"columnname.RadioButtons.property { = value }"

Parameter

Description

columnname

The name of the column that has the RadioButton edit style.

property

A property for the RadioButton column. Properties and their settings are listed in the table below.

value

The value to be assigned to the property. For RadioButton properties, value cannot be a DataWindow expression.

Property for RadioButtons

Value

3D or ThreeD

Whether the radio buttons are 3D. Values are:

  • Yes – Make the buttons 3D.

  • No – Do not make the buttons 3D.

When using dot notation, use the term ThreeD instead of 3D.

Columns

An integer constant specifying the number of columns of radio buttons.

LeftText

Whether the text labels for the radio buttons are on the left side.

Values are:

  • Yes – The text is on the left of the radio buttons.

  • No – The text is on the right of the radio buttons.

Scale

Whether the circle is scaled to the size of the font. Scale has an effect only when 3D is No.

Values are:

  • Yes – Scale the circles.

  • No – Do not scale the circles.

Usage


In the painter

Select the control and set the value in the Properties window, Behavior category when EditStyle is RadioButtons.

In DataWindow .NET, you can use the RadioButton class to set RadioButton Edit style properties using dot notation. See the description of the RadioButton class in the online Help in Visual Studio .NET for property names.

Examples

Example 1

[Visual Basic]
setting = dw1.Describe("empg.RadioButtons.LeftText")

dw1.Modify("emp_gender.RadioButtons.LeftText=no")

dw1.Modify("emp_gender.RadioButtons.3D=Yes")

dw1.Modify("emp_gender.RadioButtons.Columns=2")

Example 2

[Visual Basic]
If TypeOf col6.EditStyle Is RadioButton Then
   CType(col6.EditStyle, RadioButton).LeftText = True
ElseIf
...

[C#]
if (empBnfts.EditStyle is RadioButton)
{
   ((RadioButton)empBnfts.EditStyle).LeftText = true;
}
else
....