Back to Devexpress

GanttToolbarSettings.Alignment Property

aspnet-devexpress-dot-web-dot-aspxgantt-dot-gantttoolbarsettings-a6219dd2.md

latest2.4 KB
Original Source

GanttToolbarSettings.Alignment Property

Specifies the toolbar horizontal alignment.

Namespace : DevExpress.Web.ASPxGantt

Assembly : DevExpress.Web.ASPxGantt.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(GanttToolbarAlignment.Left)]
public GanttToolbarAlignment Alignment { get; set; }
vb
<DefaultValue(GanttToolbarAlignment.Left)>
Public Property Alignment As GanttToolbarAlignment

Property Value

TypeDefaultDescription
GanttToolbarAlignmentLeft

The alignment.

|

Available values:

NameDescription
Left

Aligns the toolbar items to the left.

| | Justify |

Aligns items to the left and right edges of the toolbar.

| | Right |

Aligns the toolbar items to the right.

|

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to Alignment
ASP.NET MVC ExtensionsGanttSettings

.SettingsToolbar .Alignment

| | ASP.NET Web Forms Controls | ASPxGantt |

.SettingsToolbar .Alignment

|

Remarks

Use the Alignment property to change the toolbar alignment.

aspx
<dx:ASPxGantt ID="Gantt" runat="server"...>
    ...
    <SettingsToolbar Alignment="Right" />
</dx:ASPxGantt>

Run Demo: (Web Forms) Gantt Toolbar

Run Demo: (MVC) Gantt Toolbar

See Also

ASPxGantt - 'How To' Examples

GanttToolbarSettings Class

GanttToolbarSettings Members

DevExpress.Web.ASPxGantt Namespace