Infragistics(R) NetAdvantage(R) Windows Forms
State Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win.Misc Namespace > UltraTile Class : State Property

Gets or sets the state of the UltraTile.

Syntax

Visual Basic (Declaration) 
Public Property State As TileState
C# 
public TileState State {get; set;}

Property Value

The state of the tile.

Exceptions

ExceptionDescription
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 BasicCopy 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

When all visible UltraTiles in an UltraTilePanel are in the Normal state, all tiles will be the same size and will be arranged in a grid. They can be repositioned by the user as well.

If one or more visible UltraTiles are in the Large state, they will occupy the majority of the UltraTilePanel while the remaining Normal state tiles will occupy a smaller portion of the panel on one of the sides.

See Also