Skip to content

Commit ea58b3d

Browse files
authored
Merge pull request #86 from aspose-tasks/main
Updated to Aspose.Tasks for .NET 24.12.
2 parents 58889ba + d12712e commit ea58b3d

File tree

53 files changed

+900
-114
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+900
-114
lines changed

english/net/aspose.tasks.saving/htmlsaveoptions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class HtmlSaveOptions : SaveOptions
5858
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
5959
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
6060
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { getset; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
61-
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of the instances of the [`TextStyle`](../../aspose.tasks.visualization/textstyle/) class that appear in project view. |
61+
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |
6262
| [Timescale](../../aspose.tasks.saving/saveoptions/timescale/) { getset; } | Gets or sets the [`Timescale`](../saveoptions/timescale/) value which is used to control how timescale (if present) is rendered when project is saved to graphical format. |
6363
| override [UseGradientBrush](../../aspose.tasks.saving/htmlsaveoptions/usegradientbrush/) { getset; } | Gets or sets a value indicating whether to use gradient brush when rendering project layout. Currently using of gradient brush is not supported when rendering to HTML. |
6464
| [View](../../aspose.tasks.saving/saveoptions/view/) { getset; } | Gets or sets a list of the view columns to render ([`GanttChartColumn`](../../aspose.tasks.visualization/ganttchartcolumn/)). If not set then task ids, task names, start and finish are rendered only. If both View and [`ViewSettings`](../saveoptions/viewsettings/) properties are set, columns from View overrides columns from ViewSettings. |

english/net/aspose.tasks.saving/imagesaveoptions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public class ImageSaveOptions : SaveOptions
5151
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
5252
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
5353
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { getset; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
54-
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of the instances of the [`TextStyle`](../../aspose.tasks.visualization/textstyle/) class that appear in project view. |
54+
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |
5555
| [TiffCompression](../../aspose.tasks.saving/imagesaveoptions/tiffcompression/) { getset; } | Gets or sets the type of compression to apply when saving generated images to the TIFF format. |
5656
| [Timescale](../../aspose.tasks.saving/saveoptions/timescale/) { getset; } | Gets or sets the [`Timescale`](../saveoptions/timescale/) value which is used to control how timescale (if present) is rendered when project is saved to graphical format. |
5757
| virtual [UseGradientBrush](../../aspose.tasks.saving/saveoptions/usegradientbrush/) { getset; } | Gets or sets a value indicating whether gradient brush should be used when rendering Gantt Chart. |

english/net/aspose.tasks.saving/imagesaveoptions/defaultfontname/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ var options = new ImageSaveOptions(SaveFileFormat.Png);
2424
options.StartDate = project.Get(Prj.StartDate).AddDays(-3);
2525
options.EndDate = project.Get(Prj.FinishDate);
2626
options.MarkCriticalTasks = true;
27-
options.LegendOnEachPage = false;
2827
options.DefaultFontName = "Segoe UI Black";
2928
options.UseProjectDefaultFont = false;
3029
options.PageSize = PageSize.Letter;

english/net/aspose.tasks.saving/imagesaveoptions/useprojectdefaultfont/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ var options = new ImageSaveOptions(SaveFileFormat.Png);
2828
options.StartDate = project.Get(Prj.StartDate).AddDays(-3);
2929
options.EndDate = project.Get(Prj.FinishDate);
3030
options.MarkCriticalTasks = true;
31-
options.LegendOnEachPage = false;
3231
options.DefaultFontName = "Segoe UI Black";
3332
options.UseProjectDefaultFont = false;
3433
options.PageSize = PageSize.Letter;

english/net/aspose.tasks.saving/mppsaveoptions/clearvba/_index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ Gets or sets a value indicating whether to remove existing VBA macros data when
1414
public bool ClearVba { get; set; }
1515
```
1616

17+
## Examples
18+
19+
Shows how to remove VBA macros from MPP file.
20+
21+
```csharp
22+
var project = new Project(DataDir + "VbaProject.mpp");
23+
project.Save(OutDir + "Vba.cleared.mpp", new MPPSaveOptions() { ClearVba = true });
24+
```
25+
1726
### See Also
1827

1928
* class [MPPSaveOptions](../)

english/net/aspose.tasks.saving/mppsaveoptions/writegroups/_index.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,72 @@ Gets or sets a value indicating whether to write groups data when saving a proje
1414
public bool WriteGroups { get; set; }
1515
```
1616

17+
## Examples
18+
19+
Shows how to add groups to a project.
20+
21+
```csharp
22+
var p = new Project();
23+
24+
{
25+
var group = new Group();
26+
group.Name = "My new task group";
27+
group.MaintainHierarchy = true;
28+
group.ShowSummary = true;
29+
30+
var criterion = new GroupCriterion();
31+
criterion.Field = Field.TaskDuration1;
32+
criterion.Font = new FontDescriptor("Comic Sans MS", 13F, FontStyles.Italic);
33+
criterion.GroupOn = GroupOn.DurationMinutes;
34+
criterion.StartAt = 5;
35+
criterion.GroupInterval = 3D;
36+
criterion.Pattern = BackgroundPattern.DarkDiagonalLeft;
37+
group.GroupCriteria.Add(criterion);
38+
39+
var criterion2 = new GroupCriterion();
40+
criterion2.Field = Field.TaskPercentComplete;
41+
criterion2.Font = new FontDescriptor("Bodoni MT", 17, FontStyles.Italic | FontStyles.Bold);
42+
criterion2.GroupOn = GroupOn.Pct199;
43+
criterion2.Pattern = BackgroundPattern.LightDither;
44+
criterion2.CellColor = Color.Green;
45+
criterion2.FontColor = Color.Red;
46+
group.GroupCriteria.Add(criterion2);
47+
group.GroupAssignments = true;
48+
p.TaskGroups.Add(group);
49+
}
50+
51+
{
52+
var group = new Group();
53+
group.Name = "My new resource group";
54+
group.MaintainHierarchy = true;
55+
group.ShowSummary = true;
56+
57+
var criterion = new GroupCriterion();
58+
criterion.Field = Field.ResourceDuration1;
59+
criterion.Font = new FontDescriptor("Comic Sans MS", 11F, FontStyles.Bold);
60+
criterion.GroupOn = GroupOn.DurationHours;
61+
criterion.StartAt = 1;
62+
criterion.GroupInterval = 2D;
63+
criterion.Pattern = BackgroundPattern.DarkDiagonalLeft;
64+
group.GroupCriteria.Add(criterion);
65+
66+
var criterion2 = new GroupCriterion();
67+
criterion2.Field = Field.ResourceCost;
68+
criterion2.Font = new FontDescriptor("Bodoni MT", 12, FontStyles.Italic | FontStyles.Bold);
69+
criterion2.GroupOn = GroupOn.Interval;
70+
criterion2.StartAt = 1D;
71+
criterion2.GroupInterval = 10D;
72+
criterion2.Pattern = BackgroundPattern.LightDither;
73+
criterion2.CellColor = Color.Magenta;
74+
criterion2.FontColor = Color.Red;
75+
group.GroupCriteria.Add(criterion2);
76+
group.GroupAssignments = true;
77+
p.ResourceGroups.Add(group);
78+
}
79+
80+
p.Save(OutDir + "output_CreateGroup.mpp", new MPPSaveOptions() { WriteGroups = true });
81+
```
82+
1783
### See Also
1884

1985
* class [MPPSaveOptions](../)

english/net/aspose.tasks.saving/pdfsaveoptions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class PdfSaveOptions : SaveOptions
5353
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
5454
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { getset; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
5555
| [TextCompression](../../aspose.tasks.saving/pdfsaveoptions/textcompression/) { getset; } | Gets or sets a compression type to be used for all content streams except images. Default is Flate. |
56-
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of the instances of the [`TextStyle`](../../aspose.tasks.visualization/textstyle/) class that appear in project view. |
56+
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |
5757
| [Timescale](../../aspose.tasks.saving/saveoptions/timescale/) { getset; } | Gets or sets the [`Timescale`](../saveoptions/timescale/) value which is used to control how timescale (if present) is rendered when project is saved to graphical format. |
5858
| virtual [UseGradientBrush](../../aspose.tasks.saving/saveoptions/usegradientbrush/) { getset; } | Gets or sets a value indicating whether gradient brush should be used when rendering Gantt Chart. |
5959
| [View](../../aspose.tasks.saving/saveoptions/view/) { getset; } | Gets or sets a list of the view columns to render ([`GanttChartColumn`](../../aspose.tasks.visualization/ganttchartcolumn/)). If not set then task ids, task names, start and finish are rendered only. If both View and [`ViewSettings`](../saveoptions/viewsettings/) properties are set, columns from View overrides columns from ViewSettings. |

english/net/aspose.tasks.saving/printoptions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class PrintOptions : SaveOptions
4444
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
4545
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
4646
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { getset; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
47-
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of the instances of the [`TextStyle`](../../aspose.tasks.visualization/textstyle/) class that appear in project view. |
47+
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |
4848
| [Timescale](../../aspose.tasks.saving/saveoptions/timescale/) { getset; } | Gets or sets the [`Timescale`](../saveoptions/timescale/) value which is used to control how timescale (if present) is rendered when project is saved to graphical format. |
4949
| virtual [UseGradientBrush](../../aspose.tasks.saving/saveoptions/usegradientbrush/) { getset; } | Gets or sets a value indicating whether gradient brush should be used when rendering Gantt Chart. |
5050
| [View](../../aspose.tasks.saving/saveoptions/view/) { getset; } | Gets or sets a list of the view columns to render ([`GanttChartColumn`](../../aspose.tasks.visualization/ganttchartcolumn/)). If not set then task ids, task names, start and finish are rendered only. If both View and [`ViewSettings`](../saveoptions/viewsettings/) properties are set, columns from View overrides columns from ViewSettings. |

english/net/aspose.tasks.saving/saveoptions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public abstract class SaveOptions : SimpleSaveOptions
3838
| [StartDate](../../aspose.tasks.saving/saveoptions/startdate/) { getset; } | Gets or sets the date to start rendering from. |
3939
| [TasksComparer](../../aspose.tasks.saving/simplesaveoptions/taskscomparer/) { getset; } | Gets or sets the comparer to sort tasks on Gantt chart and Task Sheet chart. |
4040
| [TasksFilter](../../aspose.tasks.saving/simplesaveoptions/tasksfilter/) { getset; } | Gets or sets the condition which is used to filter tasks rendered on Gantt, Task Sheet and Task Usage charts. |
41-
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of the instances of the [`TextStyle`](../../aspose.tasks.visualization/textstyle/) class that appear in project view. |
41+
| [TextStyles](../../aspose.tasks.saving/saveoptions/textstyles/) { getset; } | Gets or sets the list of text styles that applied during rendering of a project view. |
4242
| [Timescale](../../aspose.tasks.saving/saveoptions/timescale/) { getset; } | Gets or sets the [`Timescale`](./timescale/) value which is used to control how timescale (if present) is rendered when project is saved to graphical format. |
4343
| virtual [UseGradientBrush](../../aspose.tasks.saving/saveoptions/usegradientbrush/) { getset; } | Gets or sets a value indicating whether gradient brush should be used when rendering Gantt Chart. |
4444
| [View](../../aspose.tasks.saving/saveoptions/view/) { getset; } | Gets or sets a list of the view columns to render ([`GanttChartColumn`](../../aspose.tasks.visualization/ganttchartcolumn/)). If not set then task ids, task names, start and finish are rendered only. If both View and [`ViewSettings`](./viewsettings/) properties are set, columns from View overrides columns from ViewSettings. |

english/net/aspose.tasks.saving/saveoptions/legendoneachpage/_index.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)