本文整理汇总了C#中CheckBox.SetChecked方法的典型用法代码示例。如果您正苦于以下问题:C# CheckBox.SetChecked方法的具体用法?C# CheckBox.SetChecked怎么用?C# CheckBox.SetChecked使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CheckBox
的用法示例。
在下文中一共展示了CheckBox.SetChecked方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SetupControls
/// <summary>
///
/// </summary>
private void SetupControls()
{
TrayManager.ShowCursor();
// make room for the controls
TrayManager.ShowLogo( TrayLocation.TopRight );
TrayManager.ShowFrameStats( TrayLocation.TopRight );
TrayManager.ToggleAdvancedFrameStats();
infoLabel = TrayManager.CreateLabel( TrayLocation.Top, "TInfo", "", 350 );
editMenu = TrayManager.CreateLongSelectMenu( TrayLocation.Bottom, "EditMode", "Edit Mode", 370, 250, 3 );
editMenu.AddItem( "None" );
editMenu.AddItem( "Elevation" );
editMenu.AddItem( "Blend" );
editMenu.SelectItem( 0 ); // no edit mode
flyBox = TrayManager.CreateCheckBox( TrayLocation.Bottom, "Fly", "Fly" );
flyBox.SetChecked( false, false );
shadowsMenu = TrayManager.CreateLongSelectMenu( TrayLocation.Bottom, "Shadows", "Shadows", 370, 250, 3 );
shadowsMenu.AddItem( "None" );
shadowsMenu.AddItem( "Color Shadows" );
shadowsMenu.AddItem( "Depth Shadows" );
shadowsMenu.SelectItem( 0 );
IList<string> names = new List<string>();
names.Add("Help");
//a friendly reminder
TrayManager.CreateParamsPanel( TrayLocation.TopLeft, "Help", 100, names ).SetParamValue( 0, "H/F1" );
}