Gets or sets the state of the
UltraTile.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property State As TileState |
Property Value
The state of the tile.
Exceptions
| Exception | Description |
| System.ComponentModel.InvalidEnumArgumentException |
The value assigned is not a member of the enumeration.
|
Example
The following code demonstrates how to change the state of an UltraTile in code.
| Visual Basic | Copy Code |
|---|
Imports System.Windows.Forms
Imports Infragistics.Win
Imports Infragistics.Win.Misc
' Get the first tile in the UltraTilePanel
Dim tile As UltraTile = Me.UltraTilePanel1.Tiles(0)
' If the first tile is not in the Large state, animte it changing to the Large state.
If Not tile.State = TileState.Large Then
tile.SetState(TileState.Large, True)
End If |
| C# | Copy Code |
|---|
using System.Windows.Forms;
using Infragistics.Win;
using Infragistics.Win.Misc;
// Get the first tile in the UltraTilePanel
UltraTile tile = this.ultraTilePanel1.Tiles[ 0 ];
// If the first tile is not in the Large state, animte it changing to the Large state.
if ( tile.State != TileState.Large )
tile.SetState( TileState.Large, true ); |
Remarks
See Also