Layout Property
Description
Gets/Sets the layout of the tabs. The layout refers to how the tabs are sized within the TabControl.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property Layout() As [XTPTabLayoutStyle](XtremeCommandBars~Enumerations~XTPTabLayoutStyle_EN.md)
Remarks
The TabControl allows you to change the layout of your tabs within the TabControl with a single line of code. The tabs can be in a compressed, fixed, auto size, or size to fit layout. You can change the layout of the tabs at any time in your program.
Example
This sample code illustrates how to change the layout for your TabControl tabs.
' This sample code illustrates how to use the Compressed layout for your TabControl tabs.
TabControl.PaintManager.Layout = xtpTabLayoutCompressed
' This sample code illustrates how to use the Fixed layout for your TabControl tabs.
TabControl.PaintManager.Layout = xtpTabLayoutFixed
' This sample code illustrates how to use the Size-to-Fit layout for your TabControl tabs.
TabControl.PaintManager.Layout = xtpTabLayoutSizeToFit
' This sample code illustrates how to use the Autosize layout for your TabControl tabs.
TabControl.PaintManager.Layout = xtpTabLayoutAutoSize
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.