Xceed SmartUI for WinForms v3.6 Documentation
Enabled Property


Xceed.SmartUI.v3.6 Assembly > Xceed.SmartUI Namespace > SmartItem Class : Enabled Property
Gets or sets a value indicating whether the SmartItem can respond to user interaction.
Syntax
'Declaration
 
<DescriptionAttribute("Indicates whether the SmartItem can respond to user interaction.")>
<CategoryAttribute("Behavior")>
<DefaultValueAttribute()>
<BrowsableAttribute(True)>
<MergablePropertyAttribute(True)>
<LocalizableAttribute(False)>
Public Property Enabled As Boolean
'Usage
 
Dim instance As SmartItem
Dim value As Boolean
 
instance.Enabled = value
 
value = instance.Enabled
[Description("Indicates whether the SmartItem can respond to user interaction.")]
[Category("Behavior")]
[DefaultValue()]
[Browsable(true)]
[MergableProperty(true)]
[Localizable(false)]
public bool Enabled {get; set;}

Property Value

true if the SmartItem can respond to user interaction; false otherwise.
Remarks

This property does not take the enabled state of the ParentItem, ParentSmartControl or RootSmartControl into consideration. Therefore, if the parent SmartItem is not enabled but the child is, Enabled will still return true. To get the actual enabled state (taking the parents into consideration), the IsEnabled property should be consulted.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SmartItem Class
SmartItem Members