[]
        
(Showing Draft Content)

C1.Win.C1GanttView.C1GanttView

C1GanttView Class

Represents the Gantt Chart control.

Namespace: C1.Win.C1GanttView
Assembly: C1.Win.C1GanttView.4.8.dll
Syntax
[ToolboxBitmap(typeof(C1GanttView), "C1GanttView.png")]
[ClassInterface(ClassInterfaceType.AutoDispatch)]
[ComVisible(true)]
public class C1GanttView : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ISupportInitialize, ISite, IServiceProvider

Constructors

Name Description
C1GanttView()

Initializes a new instance of a C1GanttView.

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.

BarTextFont

Gets or sets the font 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.

CellBorderColor

Gets or sets the custom color of cell borders in the grid and chart views.

ChartContextMenu

Gets the context menu displayed for the chart view.

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 fore chart's scrolling area

ChartViewZoomFactor

Gets or Sets zoom factor of chart view.

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.

DragNotificationControl

The DragNotificationBase control that can be used to reflect task dragging information in some tooltip view. Also the DragNotificationBase class contains methods convenient to track the changing of Duration, Start, Finish and other parameters of the dragging BaseTask.

EmptyAreaBackColor

Gets or sets the background color of the empty area below the tasks.

EnablePrinting

Gets or sets a bool value that indicates whether printing feature is enabled by user.

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.

FixedBackColor

Gets or sets the custom background color of the fixed column/timescale area.

FixedCellBorderColor

Gets or sets the custom color of cell borders in the fixed area.

FixedFont

Gets or sets the font used in row/column headers.

FixedForeColor

Gets or sets the custom foreground color of the fixed column/timescale area.

Font

Gets or sets the font of the text displayed by the control.

GridContextMenu

Gets the context menu displayed for the grid view.

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.

GroupColumn

Specifies the group column name where the group caption is drawn besides TaskName column.

GroupDefinition

Gets GroupDefinition object used to manage grouping.

GroupFont

Gets or sets the font use for display group task on 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.

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.

Padding

This property is not relevant to this class.

PrintInfo

Gets a PrintInfo object that used to manage ganttview printing.

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.

Resources

Gets the list of resources.

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.

ScrollPosition

Gets the task and date in left upper corner of chart view or scrolls the grid and chart views to the specified task and date.

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 highlights project start and finish dates.

ShowToday

Gets or sets a value that determines whether the Gantt chart highlights today's date.

ShowToolbar

Gets or sets 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 the project start/finish date lines.

SummaryFont

Gets or sets the summary font use for display group task on the grid view.

Tasks

Gets the list of tasks.

Timescale

Specifies the timescale settings.

TodayLineColor

Gets or sets the color of the "today" line.

ToolStrip

Gets the ToolStrip object.

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.

VisualStyle

Gets or sets the visual style of the C1GanttView.

Methods

Name Description
ApplyFilter(BaseTaskFilter)

Applies the filter to C1GanttView.

BeginInit()
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(bool)

Clean up any resources being used.

EndInit()
EndUpdate()

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

ExportToMsProjectXml(string)

Exports to Microsoft Project's xml file.

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 XmlDocument.

OnAfterEditTask(CancelTaskArgs)

Raises the AfterEditTask event.

OnAfterFilter(EventArgs)

Raises the AfterFilter event.

OnAfterMoveTasks(CancelTasksArgs)

Raises the AfterMoveTasks event.

OnAmbientChangedVisualStyle()

Method invoked when the VisualStyle property changes.

OnBackColorChanged(EventArgs)

Raises the BackColorChanged event.

OnBeforeAddTask(CancelTaskArgs)

Raises the BeforeAddTask event.

OnBeforeEditTask(CancelTaskArgs)

Raises the BeforeEditTask event.

OnBeforeFilter(CancelEventArgs)

Raises the BeforeFilter event.

OnBeforeMoveTasks(CancelTasksArgs)

Raises the BeforeMoveTasks event.

OnBeforePrint(CancelEventArgs)

Raises the BeforePrint event.

OnBeforePrintPreview(CancelEventArgs)

Raises the BeforePrintPreview event.

OnBeforeRemoveTask(CancelTaskArgs)

Raises the BeforeRemoveTask event.

OnBeforeZoomFactorChange(EventArgs)

Raises the BeforeZoomFactorChange event.

OnCultureInfoChanged(EventArgs)

Raises the CultureInfoChanged event.

OnFontChanged(EventArgs)

Raises the FontChanged event.

OnForeColorChanged(EventArgs)

Raises the ForeColorChanged event.

OnPaintDay(PaintDayEventArgs)

Raises the PaintDay event.

OnParentChanged(EventArgs)

Raises the ParentChanged event.

OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event.

OnShowDialog(ShowDialogEventArgs)

Raises the ShowDialog event.

OnTaskBarClick(TaskBarClickEventArgs)

Raises the TaskBarClick event.

OnTaskBarTooltip(TaskBarTooltipEventArgs)

Raises the TaskBarTooltip event.

OnVisibleChanged(EventArgs)

Raises the VisibleChanged event.

OnZoomFactorChanged(EventArgs)

Raises the ZoomFactorChanged event.

Preview()

Opens a separate application window in which end users can preview the output that would be generated by the print operation.

Print()

Sends default printing style for the currently selected view to the printer.

RemoveSort()

Removes the all sorts were applied to the tasks.

ResetBarTextForeColor()

Resets the value of the BarTextForeColor property.

ResetFont()

Resets the Font property to its default value.

ResetGridForeColor()

Resets the value of the GridForeColor property.

ResetGroupBackColor()

Resets the GroupBackColor property to default value.

ResetMarqueeColor()

Resets the value of the MarqueeColor property.

ResetNonworkingTimeColor()

Resets the value of the NonworkingTimeColor property.

ResetSplitterColor()

Resets the value of the SplitterColor property.

ResetStartFinishLineColor()

Resets the value of the StartFinishLineColor property.

ResetTodayLineColor()

Resets the value of the TodayLineColor property.

ResetVisualStyle()

Resets the value of the VisualStyle ambient property.

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 XmlWriter.

ScrollToTask(Task)

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

ScrollToTask(Task, bool)

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

ShouldSerializeFont()

This method is for internal use only.

ShouldSerializeVisualStyle()

Gets a value that determines whether the VisualStyle property is set explicitly and should be persisted.

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.

BeforePrint

Occurs before printing.

BeforePrintPreview

Occurs before showing print preview.

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 dialog shows.

TaskBarClick

Fires when click on task bar.

TaskBarTooltip

Fires before the task bar tooltip is shown.

ZoomFactorChanged

Occurs when the ZoomFactor property is changed.