C# Class nGantt.GanttControl

Inheritance: System.Windows.Controls.UserControl
显示文件 Open project: danwallentin/nGantt Class Usage Examples

Public Methods

Method Description
AddGanttTask ( GanttRow row, GanttTask task ) : void
ClearGantt ( ) : void
CreateGanttRow ( GanttRowGroup rowGroup, string name ) : GanttRow
CreateGanttRowGroup ( string name, bool isExpanded ) : ExpandableGanttRowGroup
CreateGanttRowGroup ( ) : GanttRowGroup
CreateGanttRowGroup ( string name ) : HeaderedGanttRowGroup
CreateTimeLine ( PeriodSplitter splitter, PeriodNameFormatter PeriodNameFormatter ) : TimeLine
GanttControl ( ) : System
Initialize ( System.DateTime minDate, System.DateTime maxDate ) : void
SetGridLinesTimeline ( TimeLine timeline ) : void
SetGridLinesTimeline ( TimeLine timeline, BackgroundFormatter backgroundFormatter ) : void

Private Methods

Method Description
Border_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
ChangeSelectionRectangleSize ( object sender, System.Windows.Input.MouseEventArgs e ) : void
DeselectAllTasks ( ) : void
Grid_MouseLeftButtonDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
Grid_MouseLeftButtonUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
StopSelection ( object sender, System.Windows.Input.MouseEventArgs e ) : void
selectionCanvas_MouseLeave ( object sender, System.Windows.Input.MouseEventArgs e ) : void
selectionRectangle_ContextMenuOpening ( object sender, System.Windows.Controls.ContextMenuEventArgs e ) : void
selectionRectangle_MouseMove ( object sender, System.Windows.Input.MouseEventArgs e ) : void

Method Details

AddGanttTask() public method

public AddGanttTask ( GanttRow row, GanttTask task ) : void
row nGantt.GanttChart.GanttRow
task nGantt.GanttChart.GanttTask
return void

ClearGantt() public method

public ClearGantt ( ) : void
return void

CreateGanttRow() public method

public CreateGanttRow ( GanttRowGroup rowGroup, string name ) : GanttRow
rowGroup nGantt.GanttChart.GanttRowGroup
name string
return nGantt.GanttChart.GanttRow

CreateGanttRowGroup() public method

public CreateGanttRowGroup ( string name, bool isExpanded ) : ExpandableGanttRowGroup
name string
isExpanded bool
return nGantt.GanttChart.ExpandableGanttRowGroup

CreateGanttRowGroup() public method

public CreateGanttRowGroup ( ) : GanttRowGroup
return nGantt.GanttChart.GanttRowGroup

CreateGanttRowGroup() public method

public CreateGanttRowGroup ( string name ) : HeaderedGanttRowGroup
name string
return nGantt.GanttChart.HeaderedGanttRowGroup

CreateTimeLine() public method

public CreateTimeLine ( PeriodSplitter splitter, PeriodNameFormatter PeriodNameFormatter ) : TimeLine
splitter nGantt.PeriodSplitter.PeriodSplitter
PeriodNameFormatter PeriodNameFormatter
return nGantt.GanttChart.TimeLine

GanttControl() public method

public GanttControl ( ) : System
return System

Initialize() public method

public Initialize ( System.DateTime minDate, System.DateTime maxDate ) : void
minDate System.DateTime
maxDate System.DateTime
return void

SetGridLinesTimeline() public method

public SetGridLinesTimeline ( TimeLine timeline ) : void
timeline nGantt.GanttChart.TimeLine
return void

SetGridLinesTimeline() public method

public SetGridLinesTimeline ( TimeLine timeline, BackgroundFormatter backgroundFormatter ) : void
timeline nGantt.GanttChart.TimeLine
backgroundFormatter BackgroundFormatter
return void