” fanidan “ checkbox ” mavzusidagi
Download 170.49 Kb.
|
/// /// public CheckBox() : base() { // Checkboxes shouldn't respond to right clicks, so we need to do all our own click logic SetStyle(ControlStyles.StandardClick | ControlStyles.StandardDoubleClick, false); SetAutoSizeMode(AutoSizeMode.GrowAndShrink); autoCheck = true; TextAlign = ContentAlignment.MiddleLeft; } private bool AccObjDoDefaultAction { get { return this.accObjDoDefaultAction; } set { this.accObjDoDefaultAction = value; } } /// /// /// Gets /// or sets the value that determines the appearance of a /// check box control. /// [ DefaultValue(Appearance.Normal), Localizable(true), SRCategory(SR.CatAppearance), SRDescription(SR.CheckBoxAppearanceDescr) ] public Appearance Appearance { get { return appearance; } set { //valid values are 0x0 to 0x1 if (!ClientUtils.IsEnumValid(value, (int)value, (int)Appearance.Normal, (int)Appearance.Button)){ throw new InvalidEnumArgumentException("value", (int)value, typeof(Appearance)); } if (appearance != value) { using (LayoutTransaction.CreateTransactionIf(AutoSize, this.ParentInternal, this, PropertyNames.Appearance)) { appearance = value; if (OwnerDraw) { Refresh(); } else { UpdateStyles(); } OnAppearanceChanged(EventArgs.Empty); } } } } /// /// /// [To be supplied.] /// [SRCategory(SR.CatPropertyChanged), SRDescription(SR.CheckBoxOnAppearanceChangedDescr)] public event EventHandler AppearanceChanged { add { Events.AddHandler(EVENT_APPEARANCECHANGED, value); } remove { Events.RemoveHandler(EVENT_APPEARANCECHANGED, value); } } /// /// /// Gets or sets a value indicating whether the /// value and the check box's appearance are automatically /// changed when it is clicked. /// [ DefaultValue(true), SRCategory(SR.CatBehavior), SRDescription(SR.CheckBoxAutoCheckDescr) ] public bool AutoCheck { get { return autoCheck; } set { autoCheck = value; } } /// /// /// /// Gets or sets /// the horizontal and vertical alignment of a check box on a check box /// control. /// /// /// [ Bindable(true), Download 170.49 Kb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2025
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling