property G2Host.HostInitTemplate as String
Specifies the template to init the host.

TypeDescription
String A String expression that defines the initial template to be applied when the control creates the host.
By default, the HostInitTemplate property defines the template to be applied on the Host, when it is created. In other words, it's the initialization code of the host, which include adding columns, colors, and so on. Use the ExecuteTemplate property to returns the result of executing a template file. Use the Template property to execute a template without returning any result. Use the ExecuteTemplate property to execute code by passing instructions as a string ( template string ).

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