Type | Description | |||
String | A String expression that specifies the label being displayed by the original level. It supports built-in HTML format as well. |
The following sample shows the owner level in bold and red color: ( OwnerLevel property is "<fgcolor=FF0000><b><%mmm%> <%d%></b></fgcolor>" )
The OwnerLabel property supports the following:
The following tags are displayed based on the user's Regional and Language Options:
The OwnerLabel property supports:
The control supports expandable HTML captions feature which allows you to expand(show)/collapse(hide) different information using <a ;exp=> or <a ;e64=> anchor tags. The exp/e64 field of the anchor stores the HTML line/lines to show once the user clicks/collapses/expands the caption.
Any ex-HTML caption can be transformed to an expandable-caption, by inserting the anchor ex-HTML tag. For instance, <solidline><b>Header</b></solidline><br>Line1<r><a ;exp=show lines>+</a><br>Line2<br>Line3 shows the Header in underlined and bold on the first line and Line1, Line2, Line3 on the rest. The show lines is shown instead of Line1, Line2, Line3 once the user clicks the + sign.
or <font ;31><sha 404040;5;0><fgcolor=FFFFFF>outline anti-aliasing</fgcolor></sha></font> gets:
The following VB sample shows how can I change the label for a specified unit:
With G2antt1 .BeginUpdate With .Chart .PaneWidth(0) = 0 .LevelCount = 2 .FirstVisibleDate = #1/1/2008# .AllowInsideZoom = True .AllowResizeInsideZoom = False .InsideZoomOnDblClick = False .DefaultInsideZoomFormat.OwnerLabel = "<b><%d%></b> <%d2%>" With .InsideZooms .SplitBaseLevel = False .DefaultWidth = 32 .Add(#1/4/2008#).AllowInsideFormat = False End With End With .EndUpdate End WithThe following VB.NET sample shows how can I change the label for a specified unit:
With AxG2antt1 .BeginUpdate With .Chart .PaneWidth(0) = 0 .LevelCount = 2 .FirstVisibleDate = #1/1/2008# .AllowInsideZoom = True .AllowResizeInsideZoom = False .InsideZoomOnDblClick = False .DefaultInsideZoomFormat.OwnerLabel = "<b><%d%></b> <%d2%>" With .InsideZooms .SplitBaseLevel = False .DefaultWidth = 32 .Add(#1/4/2008#).AllowInsideFormat = False End With End With .EndUpdate End WithThe following C++ sample shows how can I change the label for a specified unit:
/* Copy and paste the following directives to your header file as it defines the namespace 'EXG2ANTTLib' for the library: 'ExG2antt 1.0 Control Library' #import <ExG2antt.dll> using namespace EXG2ANTTLib; */ EXG2ANTTLib::IG2anttPtr spG2antt1 = GetDlgItem(IDC_G2ANTT1)->GetControlUnknown(); spG2antt1->BeginUpdate(); EXG2ANTTLib::IChartPtr var_Chart = spG2antt1->GetChart(); var_Chart->PutPaneWidth(0,0); var_Chart->PutLevelCount(2); var_Chart->PutFirstVisibleDate("1/1/2008"); var_Chart->PutAllowInsideZoom(VARIANT_TRUE); var_Chart->PutAllowResizeInsideZoom(VARIANT_FALSE); var_Chart->PutInsideZoomOnDblClick(VARIANT_FALSE); var_Chart->GetDefaultInsideZoomFormat()->PutOwnerLabel(L"<b><%d%></b> <%d2%>"); EXG2ANTTLib::IInsideZoomsPtr var_InsideZooms = var_Chart->GetInsideZooms(); var_InsideZooms->PutSplitBaseLevel(VARIANT_FALSE); var_InsideZooms->PutDefaultWidth(32); var_InsideZooms->Add("1/4/2008")->PutAllowInsideFormat(VARIANT_FALSE); spG2antt1->EndUpdate();The following C# sample shows how can I change the label for a specified unit:
axG2antt1.BeginUpdate(); EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart; var_Chart.set_PaneWidth(0 != 0,0); var_Chart.LevelCount = 2; var_Chart.FirstVisibleDate = "1/1/2008"; var_Chart.AllowInsideZoom = true; var_Chart.AllowResizeInsideZoom = false; var_Chart.InsideZoomOnDblClick = false; var_Chart.DefaultInsideZoomFormat.OwnerLabel = "<b><%d%></b> <%d2%>"; EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms; var_InsideZooms.SplitBaseLevel = false; var_InsideZooms.DefaultWidth = 32; var_InsideZooms.Add("1/4/2008").AllowInsideFormat = false; axG2antt1.EndUpdate();The following VFP sample shows how can I change the label for a specified unit:
with thisform.G2antt1 .BeginUpdate with .Chart .PaneWidth(0) = 0 .LevelCount = 2 .FirstVisibleDate = {^2008-1-1} .AllowInsideZoom = .T. .AllowResizeInsideZoom = .F. .InsideZoomOnDblClick = .F. .DefaultInsideZoomFormat.OwnerLabel = "<b><%d%></b> <%d2%>" with .InsideZooms .SplitBaseLevel = .F. .DefaultWidth = 32 .Add({^2008-1-4}).AllowInsideFormat = .F. endwith endwith .EndUpdate endwith