[]
Ƭ Duration: Object
表示调度中的持续时间。要创建有效的持续时间,请调用project.parseDuration方法。
property [value] 表示持续时间的单位值。
property [unit] 表示值的单位。如果未指定,将使用GC.Spread.Sheets.GanttSheet.CalendarSettings中的默认单位。
property [time] 表示实际的持续时间(以毫秒为单位)。
| Name | Type |
|---|---|
time? |
number |
unit? |
DurationUnit |
value? |
number |
Ƭ DurationUnit: "Month" | "Week" | "Day" | "Hour" | "Minute"
description 表示持续时间的单位。
Ƭ GanttGridline: Object
表示如何在甘特图上绘制网格线。
property lineType 线条的类型。
property lineColor 线条的颜色。
| Name | Type |
|---|---|
lineColor |
ColorString |
lineType |
GanttGridlineType |
Ƭ GanttGridlineInterval: Object
表示如何在甘特图上绘制带间隔的网格线。
property lineType 普通线条的类型。
property lineColor 普通线条的颜色。
property [interval] 间隔计数。间隔值的倍数处的线条将使用intervalType和intervalColor。
property [intervalLineType] 间隔线条的类型。
property [intervalLineColor] 间隔线条的颜色。
| Name | Type |
|---|---|
interval? |
number |
intervalLineColor? |
ColorString |
intervalLineType? |
GanttGridlineType |
lineColor |
ColorString |
lineType |
GanttGridlineType |
Ƭ GridStyle: Object
表示任务网格的样式。
property [font] 表示文本的字体。
property [color] 表示文本的颜色。
property [backColor] 表示文本的背景颜色。
property [textDecoration] 表示文本的装饰。
| Name | Type |
|---|---|
backColor? |
string |
color? |
string |
font? |
string |
textDecoration? |
TextDecorationType |
Ƭ IGanttSheetOptions: Object
表示甘特表选项
property [enableGanttColumn] 是否显示甘特图列。默认为true。
property [allowAddNew] - 是否允许添加新的空行。
property [sheetTabColor] - 用于表示工作表标签颜色的颜色字符串,如"red"、"#FFFF00"、"rgb(255,0,0)"、"Accent 5"等。
| Name | Type | Description |
|---|---|---|
allowAddNew? |
boolean |
是否允许添加新的空行。 |
enableGanttColumn? |
boolean |
是否显示甘特图列。默认为true。 |
sheetTabColor? |
string |
用于表示工作表标签颜色的颜色字符串,如"red"、"#FFFF00"、"rgb(255,0,0)"、"Accent 5"等。 |
Ƭ ITaskData: Object
表示用于创建任务的数据。用于项目的添加、插入和更新任务方法中。
property [name] 表示任务的名称。
property [start] 表示任务的开始日期。
property [finish] 表示任务的结束日期。
property [duration] 表示任务的持续时间。
property [mode] 表示任务的调度模式。
property {Object.<string, GC.Spread.Sheets.GanttSheet.TaskbarStyle>} [barStyles] 表示任务的条形图样式。
| Name | Type |
|---|---|
barStyles? |
{ [key: string]: TaskbarStyle; } |
duration? |
Duration |
finish? |
Date |
mode? |
TaskScheduleMode |
name? |
string |
start? |
Date |
Ƭ ITaskDependency: Object
表示添加任务依赖关系的一组参数。
property fromTaskNumber 表示依赖关系来源的任务编号。
property toTaskNumber 表示依赖关系目标的任务编号。
property [type] 可选。表示依赖类型。默认为'FS'(完成到开始)。
| Name | Type |
|---|---|
fromTaskNumber |
number |
toTaskNumber |
number |
type? |
TaskDependencyType |
Ƭ NonWorkingTimeDrawMode: "Behind" | "None"
description 表示如何在甘特图中绘制非工作时间区域。
Ƭ TaskDependencyType: "FS" | "SS" | "FF" | "SF"
description 表示任务依赖关系的类型。
Ƭ TaskScheduleMode: "Auto" | "Manual"
description 表示任务的调度模式。
Ƭ TaskStyle: Object
表示任务的样式。
property [name] 表示任务样式的名称。
property [taskbarStyle] 表示任务条部分的样式。
property [gridStyle] 表示任务网格部分的样式。
| Name | Type |
|---|---|
gridStyle? |
GridStyle |
name? |
string |
taskbarStyle? |
TaskbarStyle |
Ƭ TaskbarEndShape: "arrowDown" | "arrowUp" | "caretDownTop" | "caretUpBottom" | "circle" | "circleArrowDown" | "circleArrowUp" | "circleDiamond" | "circleTriangleDown" | "circleTriangleUp" | "diamond" | "houseDown" | "houseUp" | "leftBracket" | "leftFade" | "lineShape" | "rightBracket" | "rightFade" | "square" | "star" | "triangleDown" | "triangleLeft" | "triangleRight" | "triangleUp"
description 表示任务条起始部分和结束部分的形状。
Ƭ TaskbarEndType: "solid" | "dashed" | "framed"
description 表示任务条结束形状的绘制类型。
Ƭ TaskbarFillPattern: "hollow" | "solidFill" | "lightFill" | "mediumFill" | "darkFill" | "diagonalRight" | "diagonalLeft" | "diagonalCross" | "lineVertical" | "lineHorizontal" | "lineCross" | "dashedBorder"
description 表示甘特图中任务条中间部分或非工作时间区域的填充图案。
Ƭ TaskbarLinkMode: "noLinks" | "toEnd" | "toTop"
description 表示如何绘制任务条之间的连接线。
Ƭ TaskbarMiddleShape: "rectangleBar" | "lineTop" | "lineMiddle" | "lineBottom" | "rectangleTop" | "rectangleMiddle" | "rectangleBottom"
description 表示任务条中间部分的形状。
Ƭ TaskbarStyle: Object
表示任务条的样式。
property [startShape] 表示起始部分的形状。
property [startType] 表示起始部分的类型。
property [startColor] 表示起始部分的颜色。
property [endShape] 表示结束部分的形状。
property [endType] 表示结束部分的类型。
property [endColor] 表示结束部分的颜色。
property [middleShape] 表示中间部分的形状。
property [middlePattern] 表示中间部分的填充图案。
property [middleColor] 表示中间部分的颜色。
property [leftText] 表示任务字段或公式的名称,其值将显示在任务条左侧的文本中。
property [leftTextStyle] 表示任务条左侧任务字段的样式。
property [rightText] 表示任务字段或公式的名称,其值将显示在任务条右侧的文本中。
property [rightTextStyle] 表示任务条右侧任务字段的样式。
property [topText] 表示任务字段或公式的名称,其值将显示在任务条上方的文本中。
property [topTextStyle] 表示任务条上方任务字段的样式。
property [bottomText] 表示任务字段或公式的名称,其值将显示在任务条下方的文本中。
property [bottomTextStyle] 表示任务条下方任务字段的样式。
property [insideText] 表示任务字段或公式的名称,其值将显示在任务条内部的文本中。
property [insideTextStyle] 表示任务条内部任务字段的样式。
| Name | Type |
|---|---|
bottomText? |
string |
bottomTextStyle? |
TextStyle |
endColor? |
ColorString |
endShape? |
TaskbarEndShape |
endType? |
TaskbarEndType |
insideText? |
string |
insideTextStyle? |
TextStyle |
leftText? |
string |
leftTextStyle? |
TextStyle |
middleColor? |
ColorString |
middlePattern? |
TaskbarFillPattern |
middleShape? |
TaskbarMiddleShape |
rightText? |
string |
rightTextStyle? |
TextStyle |
startColor? |
ColorString |
startShape? |
TaskbarEndShape |
startType? |
TaskbarEndType |
topText? |
string |
topTextStyle? |
TextStyle |
Ƭ TaskbarStyleRuleName: "projectSummary" | "summary" | "manualSummary" | "task" | "manualTask" | "milestone" | "manualMilestone" | "progress" | "manualProgress" | "startOnly" | "finishOnly" | "durationOnly" | "startOnlyMilestone" | "finishOnlyMilestone" | "durationOnlyMilestone"
description 表示内置任务条样式规则的名称。用于project.taskStyleRules.getRule方法。
Ƭ TextStyle: Object
表示甘特图上的时间刻度线和任务条的文本样式。
property [font] 表示文本的字体。
property [color] 表示文本的颜色。
property [textDecoration] 表示文本的装饰。
| Name | Type |
|---|---|
color? |
ColorString |
font? |
string |
textDecoration? |
TextDecorationType |
Ƭ Time: Object
表示包含小时和分钟的时间值。
property hour 表示小时。可以是0到24。
property minute 表示分钟。可以是0到59。
| Name | Type |
|---|---|
hour |
number |
minute |
number |
Ƭ TimescaleLabelFormatter: (date: Date, project: Project) => string
▸ (date, project): string
用于格式化时间刻度标签的回调函数。
| Name | Type | Description |
|---|---|---|
date |
Date |
指定要格式化的日期。 |
project |
Project |
时间刻度所属的项目。可以用于格式化,如使用开始日期、日历设置或其他数据。 |
string
Ƭ WorkDay: WorkTime[]
表示一天中的工作时间段。
Ƭ WorkTime: Object
表示一天中的工作时间段。
property start 表示开始时间。可以是0:00到23:59。
property end 表示结束时间。可以是0:01到24:00。
| Name | Type |
|---|---|
end |
Time |
start |
Time |