Type | Description | |||
String | A String expression that defines the initial template to be applied when the control creates the host. |
At creation time, the following code is applied to the host:
With .Host .BeginUpdate With .Columns .Clear .Add("Tasks").Editor.EditType = EditType With .Add("") .AllowSort = False .AllowSizing = False .FormatColumn = "1 pos ``" .Position = 0 .Width = 32 .Alignment = RightAlignment .Def(exCellPaddingLeft) = 2 .Def(exCellPaddingRight) = 2 End With End With .AntiAliasing = True .ColumnAutoResize = True .ScrollBySingleLine = True .HeaderHeight = 24 .DefaultItemHeight = 20 .ContinueColumnScroll = False .Appearance = None2 .HeaderAppearance = Etched .SelForeColor = RGB(0,0,0) .SelBackColor = RGB(204,232,255) .BackColor = RGB(255,255,255) .ForeColor = RGB(0,0,0) .BackColorAlternate = RGB(246,246,246) .BackColorHeader = .BackColor .BackColorLevelHeader = .BackColor .Background(exCursorHoverColumn) = -1 .DrawGridLines = exAllLines With .Chart .SelBackColor = G2antt1.SelBackColor .BackColor = RGB(255,255,255) .NonworkingDaysPattern = exPatternBDiagonal .LevelCount = 2 .OverviewVisible = exOverviewShowAll .AllowResizeChart = ResizeChartEnum.exAllowChangeUnitScale Or ResizeChartEnum.exAllowResizeChartMiddle Or ResizeChartEnum.exAllowResizeChartHeader .DrawGridLines = exAllLines .FirstWeekDay = .LocFirstWeekDay .MonthNames = .LocMonthNames .WeekDays = .LocWeekDays .AMPM = .LocAMPM .UnitScale = exDay End With .EndUpdate End With