[]
        
(Showing Draft Content)

C1.WPF.GanttView.C1GanttView

C1GanttView Class

Inheritance
C1GanttView
Namespace: C1.WPF.GanttView
Assembly: C1.WPF.GanttView.dll
Syntax
[TemplatePart(Name = "GridView", Type = typeof(GridView))]
[TemplatePart(Name = "GanttChartView", Type = typeof(GanttChartView))]
[TemplatePart(Name = "MainToolBar", Type = typeof(C1ToolStrip))]
[TemplatePart(Name = "Splitter", Type = typeof(GridSplitter))]
[TemplatePart(Name = "NotificationGrid", Type = typeof(Grid))]
public class C1GanttView : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IDisposable

Constructors

Name Description
C1GanttView()

Initializes a new instance of the C1GanttView class.

Fields

Name Description
BarTextFontFamilyProperty

Identifies the BarTextFontFamily dependency property.

BarTextFontSizeProperty

Identifies the BarTextFontSize dependency property.

BarTextFontWeightProperty

Identifies the BarTextFontWeight dependency property.

BarTextForeColorProperty

Identifies the BarTextForeColor dependency property.

ChartFinishDateProperty

Identifies the ChartFinishDate dependency property.

ChartStartDateProperty

Identifies the ChartStartDate dependency property.

GridForeColorProperty

Identifies the GridForeColor dependency property.

GridWidthProperty

Identifies the GridWidth dependency property.

GroupBackColorProperty

Identifies the GroupBackColor dependency property.

GroupFontFamilyProperty

Identifies the GroupFontFamily dependency property.

GroupFontSizeProperty

Identifies the GroupFontSize dependency property.

GroupFontWeightProperty

Identifies the GroupFontWeight dependency property.

HighlightBackColorProperty

Identifies the HighlightBackColor dependency property.

HighlightForeColorProperty

Identifies the HighlightForeColor dependency property.

MarqueeColorProperty

Identifies the MarqueeColor dependency property.

NonworkingTimeColorProperty

Identifies the NonworkingTimeColor dependency property.

ReadOnlyProperty

Identifies the ReadOnly dependency property.

ShowNonworkingTimeProperty

Identifies the ShowNonworkingTime dependency property.

ShowStartFinishProperty

Identifies the ShowStartFinish dependency property.

ShowTodayProperty

Identifies the ShowToday dependency property.

ShowToolbarProperty

Identifies the ShowToolbar dependency property.

SplitterColorProperty

Identifies the SplitterColor dependency property.

StartFinishLineColorProperty

Identifies the StartFinishLineColor dependency property.

SummaryFontFamilyProperty

Identifies the SummaryFontFamily dependency property.

SummaryFontSizeProperty

Identifies the SummaryFontSize dependency property.

SummaryFontWeightProperty

Identifies the SummaryFontWeight dependency property.

ThemeProperty

Identifies the Theme dependency property.

TodayLineColorProperty

Identifies the TodayLineColor dependency property.

ToolbarBackColorProperty

Identifies the ToolbarBackColor dependency property.

ViewHeaderForegroundProperty

Identifies the ViewHeaderForeground dependency property.

Properties

Name Description
AdaptiveBarHeight

Gets or sets whether the all bar heights will be adapted according to C1GantView Font.

BarHeight

Gets or sets the height of task bar.

BarStyles

Gets the collection of non-standard bar styles.

BarTextFontFamily

Gets or sets the font family used for bar text on the chart view.

BarTextFontSize

Gets or sets the font size used for bar text on the chart view.

BarTextFontWeight

Gets or sets the font weight used for bar text on the chart view.

BarTextForeColor

Gets or sets the foreground color of bar text on the chart view.

CalendarExceptions

Gets the collection of default calendar exceptions.

ChartDateFormat

Gets or sets the format string for date values on the chart view.

ChartFinishDate

Gets or sets finish date for chart's scrolling area.

ChartStartDate

Gets or sets start date for chart's scrolling area.

ChartViewZoomFactor

Gets or Sets zoom factor of chart view.The value must be between 0 and 11.

Columns

Gets the collection of grid columns.

Culture

Gets or sets the culture ID used by the component.

CultureInfo

The current CultureInfo object.

CurrentComparer

Gets the current comparer that's used for sorting.

CustomCalendars

Gets the collection of calendars that identify working times.

DataStorage

returns the C1GanttViewStorage component.

DaysPerMonth

Gets or sets the number of working days in a month.

DefaultDaysOff

Gets or sets the default days off work.

DefaultWorkWeek

Gets the default work week.

DefaultWorkingTimes

Gets the default day working start/end times.

FilterDefinition

Gets FilterDefinition object used to manage filtering.

FinishDate

Gets or sets the finish date of the project.

FirstDayOfWeek

Gets or sets the first working day of the week.

FirstMonthOfFY

Gets or sets the first month of the fiscal year.

GridDateFormat

Gets or sets the format string for date values on the grid view.

GridForeColor

Gets or sets the foreground color of the grid view.

GridWidth

Gets or sets the width of the grid portion of the control.

GroupBackColor

Gets or sets the background color use for display group task on the grid view.

GroupDefinition

Gets GroupDefinition object used to manage grouping.

GroupFontFamily

Gets or sets the font family used for group task in the grid view.

GroupFontSize

Gets or sets the font size used for group task in the grid view.

GroupFontWeight

Gets or sets the font weight used for group task in the grid view.

HighlightBackColor

Gets or sets the custom background color of the highlighted row in the grid view.

HighlightForeColor

Gets or sets the custom foreground color of the highlighted row in the grid view.

HoursPerDay

Gets or sets the number of work hours per day.

HoursPerWeek

Gets or sets the number of work hours per week.

IsDisposed

Gets whether this instance is disposed.

MarqueeColor

Gets or sets the color of marquee displayed on the chart view when resizing or moving task rectangles.

NonworkingTimeColor

Gets or sets the color of the brush for drawing non-working time.

Options

Gets C1GanttView options.

ProgressLine

Specifies the progress line settings.

Project

Gets the Project being displayed in the control.

ProjectSummary

Gets or sets the project summary.

ReadOnly

Gets or sets a value that determines whether the gantt view is in read only mode.

Schedule

Gets the Schedule options.

ScheduleFrom

Gets or sets whether the project is scheduled from its start date or from its finish date.

SchedulePriority

Defines whether the project will be rescheduled with Duration or Start/Finish priority.

SelectedTask

Gets or sets the currently selected task.

SelectedTaskIndex

Gets or sets the index of the currently selected task.

Indicates whether the Gantt chart draws link lines.

ShowNonworkingTime

Gets or sets a value that determines whether the Gantt chart draws non-working time.

ShowProjectSummary

Gets or sets a value that determines whether the project's summary task is shown.

ShowStartFinish

Gets or sets a value that determines whether the Gantt chart draws start and finish time.

ShowToday

Indicates whether the Gantt chart highlights today's date.

ShowToolbar

Specifies whether the toolbar with the command buttons is visible.

SplitterColor

Gets or sets the custom color of the splitter between the grid and chart views.

StartDate

Gets or sets the start date of the project.

StartFinishLineColor

Gets or sets the color of start line and finish line.

SummaryFontFamily

Gets or sets the font family used for summary in the grid view.

SummaryFontSize

Gets or sets the font size used for summary in the grid view.

SummaryFontWeight

Gets or sets the font weight used for summary in the grid view.

TaskResources

Gets the list of resources.

Tasks

Gets the list of tasks.

Theme

Gets or sets a ResourceDictionary object containing GanttView theme resources.

Timescale

Specifies the timescale settings.

TodayLineColor

Gets or sets the color of the today line.

ToolbarBackColor

Gets or sets the custom background color of the toolbar.

UseStartingYearForFY

Gets or sets whether the fiscal year starts in the same calendar year (true) or in the previous calendar year (false).

UserCultureOverride

Gets or sets whether the current user regional settings override the selected culture.

ViewHeaderForeground

Gets or sets the foreground color for gridview and chartview headers.

Methods

Name Description
ApplyFilter(BaseTaskFilter)

Applies the filter to C1GanttView.

BeginUpdate()

Maintains performance while multiple settings are being changed.

ClearFilters()

Clears all filters were applied to C1GanttView.

ClearGroup()

Removes the group view.

ClearUndoRedo()

Clears undo and redo stacks.

ClickButton(CommandButton)

Simulates a click on the toolbar button specified by the 'button' parameter.

Dispose()
Dispose(bool)
EndUpdate()

Resumes processing after it has been suspended by a call to BeginUpdate().

ExportToMsProjectXml()

Exports to a Microsoft Project's xml file.

Finalize()

Finalizes this instance of the C1GanttView class.

GetPredefinedBarStyle(BarType)

Returns a copy of the built-in BarStyle for the specified bar type.

Group(BaseGroup)

Performs grouping by a group model.

Group(GroupModelCollection)

Performs grouping by a group definition.

ImportFromMsProjectXml(string, bool)

Imports Microsoft Project's xml file.

LoadXml(Stream)

Loads the contents of C1GanttView from a Stream.

LoadXml(string)

Loads the contents of C1GanttView from an XML file.

LoadXml(XmlDocument)

Loads the contents of C1GanttView from an System.Xml.XmlDocument.

OnAfterEditTask(CancelTaskEventArgs)

Raises the AfterEditTask event.

OnAfterFilter(EventArgs)

Raises the AfterFilter event.

OnAfterMoveTasks(CancelTasksArgs)

Raises the AfterMoveTasks event.

OnApplyTemplate()
OnBeforeAddTask(CancelTaskEventArgs)

Raises the BeforeAddTask event.

OnBeforeEditTask(CancelTaskEventArgs)

Raises the BeforeEditTask event.

OnBeforeFilter(CancelEventArgs)

Raises the BeforeFilter event.

OnBeforeMoveTasks(CancelTasksArgs)

Raises the BeforeMoveTasks event.

OnBeforeRemoveTask(CancelTaskEventArgs)

Raises the BeforeRemoveTask event.

OnBeforeZoomFactorChange(EventArgs)

Raises the BeforeZoomFactorChange event.

OnCultureInfoChanged(EventArgs)

Raises the CultureInfoChanged event.

OnPaintDay(PaintDayEventArgs)

Raises the PaintDay event.

OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event.

OnShowDialog(CancelEventArgs)

Raises the ShowDialog event.

OnZoomFactorChanged(EventArgs)

Raises the ZoomFactorChanged event.

RemoveSort()

Removes the all sorts were applied to the tasks.

ResetGroupBackColor()

Resets the GroupBackColor property to default value.

SaveXml(Stream)

Saves the contents of C1GanttView into a Stream.

SaveXml(Stream, Encoding)

Saves the contents of C1GanttView into a Stream.

SaveXml(string)

Saves the contents of C1GanttView into an XML file.

SaveXml(string, Encoding)

Saves the contents of C1GanttView into an XML file.

SaveXml(XmlWriter)

Saves the contents of C1GanttView into an System.Xml.XmlWriter.

ScrollToTask(BaseTask)

Scrolls the grid and chart views so that the specified task becomes visible.

ScrollToTask(BaseTask, bool)

Scrolls the grid and chart views so that the specified task becomes visible.

SortTasks(IComparer<Task>)

Sorts all the tasks by given comparer.

SortTasks(PropertyDescriptor, ListSortDirection)

Sorts all the tasks by specific property and order direction.

Zoom(TimescaleUnits, int)

Zoom to custom count and unit.

ZoomEntireProject()

Zoom to entire project.

ZoomIn()

Simulates zoom in operations.

ZoomOut()

Simulate zoom out operations.

ZoomTask(Task)

Zoom to a specific task.

ZoomTasks(List<Task>)

Zoom to many tasks.

ZoomToRange(DateTime, DateTime)

Zoom to specific time range.

Events

Name Description
AfterEditTask

Fires after the user finished editing a task.

AfterFilter

Occurs after filtered.

AfterMoveTasks

Fires after moving tasks.

BeforeAddTask

Fires before a new task is added by the user.

BeforeEditTask

Fires before the user finished editing a task.

BeforeFilter

Occurs before filtering tasks.

BeforeMoveTasks

Fires before moving tasks.

BeforeRemoveTask

Fires before a task is removed by the user.

BeforeZoomFactorChange

Occurs before the ZoomFactor property changes.

CultureInfoChanged

Occurs when the value of the CultureInfo property changes.

PaintDay

Fires when painting day on chart view.

SelectedIndexChanged

Occurs when the selected task index changes.

ShowDialog

Occurs before the task info dialog shows.

ZoomFactorChanged

Occurs when the ZoomFactor property is changed.