Spread Windows Forms 9.0 Product Documentation
TextIndeterminate Property (FpCheckBox)
Example 


Gets or sets the text displayed when the state of the check box control is indeterminate.
Syntax
'Declaration
 
Public Overridable Property TextIndeterminate As String
'Usage
 
Dim instance As FpCheckBox
Dim value As String
 
instance.TextIndeterminate = value
 
value = instance.TextIndeterminate
public virtual string TextIndeterminate {get; set;}

Property Value

String with the text for the indeterminate state
Remarks

Set this property to specify the text for the indeterminate state. Set the TextFalse and TextTrue properties to specify the text for the false and true states.

If you do not want to provide text for each check box state, set the Caption property instead.

If you set text for the different states, that text overrides the setting for the Caption property when the control is in that state. For example, if you set text for the TextTrue property, but not the TextIndeterminate or TextFalse properties, when the check box is true, the text displayed is the TextTrue property text. When the check box is false or indeterminate, the text is the Caption text.

To specify pictures for the check box states, set the Picture property. Specify the alignment of the text and the check box picture by setting the TextAlign property. Specify the alignment of the contents (text and check box picture) by setting the PictureAlignH and PictureAlignV properties.

Set the ThreeState property to specify whether the check box has two or three states.

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
Caption Property
Picture Property
PictureAlignH Property
PictureAlignV Property
TextAlign Property
TextFalse Property
TextTrue Property
ThreeState Property

 

 


Copyright © GrapeCity, inc. All rights reserved.