Spread Windows Forms 10.0 Product Documentation
ThreeState Property (FpCheckBox)
Example 


Gets or sets whether the check box control has a third state.
Syntax
'Declaration
 
Public Overridable Property ThreeState As Boolean
'Usage
 
Dim instance As FpCheckBox
Dim value As Boolean
 
instance.ThreeState = value
 
value = instance.ThreeState
public virtual bool ThreeState {get; set;}

Property Value

true if three-state check boxes; false for two-state
Remarks

Check boxes can be either two-state (with true and false) or three-state (with true, false, and indeterminate). Indeterminate check boxes indicate that the condition is neither true nor false. For example, if some selected text is bold and some is not, a Bold check box might be indeterminate, to show the mixed state.

You can specify check box pictures for all the states using the Picture property. Specify text for the states using the TextIndeterminate, TextFalse, and TextTrue properties.

Example
control.ThreeState = true;
control.Checked = false;
control.Picture[1] = Image.FromFile("..\\check1.bmp");
 
control.ThreeState = True
control.Checked = False
control.Picture(1) = Image.FromFile("..\check1.bmp")
 
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

FpCheckBox Class
FpCheckBox Members
Picture Property
TextIndeterminate Property
TextFalse Property
TextTrue Property

 

 


Copyright © GrapeCity, inc. All rights reserved.