Skip to content

Commit bd3dea8

Browse files
authored
Merge pull request #106 from aspose-tasks/main
Updated to Aspose.Tasks for .NET 25.5.
2 parents 1274c17 + 7a3cf5a commit bd3dea8

File tree

101 files changed

+696
-274
lines changed

Some content is hidden

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

101 files changed

+696
-274
lines changed

english/net/aspose.tasks.saving/primaverasaveoptions/skipsummaryassignments/_index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ public bool SkipSummaryAssignments { get; set; }
1818

1919
Primavera software doesn't support assignments of resources to summary (WBS) tasks. Thus, export of such assignments can result in an invalid file according to Primavera's model. If true, assignments to summary tasks are skipped during export. If false (the default value), an exception will be thrown if assignment to a summary task is encountered during export.
2020

21+
## Examples
22+
23+
Shows how to use SkipSummaryAssignments flag.
24+
25+
```csharp
26+
var project = new Project(DataDir + "Blank2010.mpp");
27+
28+
var resource = project.Resources.Add("Resource");
29+
30+
var summaryTask = project.RootTask.Children.Add("Summary");
31+
summaryTask.Children.Add("Task");
32+
33+
// Primavera doesn't support assignments of resources to summary tasks.
34+
// So exporting such assignments to Primavera format may result in files that cannot be imported to Primavera.
35+
var assignment = project.ResourceAssignments.Add(summaryTask, resource);
36+
37+
var options = new PrimaveraXmlSaveOptions();
38+
options.SkipSummaryAssignments = true;
39+
project.Save(OutDir + "UseSkipSummaryAssignments_out.xml", options);
40+
```
41+
2142
### See Also
2243

2344
* class [PrimaveraSaveOptions](../)

english/net/aspose.tasks.saving/primaveraxmlsaveoptions/skipsummaryassignments/_index.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ public bool SkipSummaryAssignments { get; set; }
1818

1919
Primavera software doesn't support assignments of resources to summary (WBS) tasks. Thus, export of such assignments can result in an invalid file according to Primavera's model. If true, assignments to summary tasks are skipped during export. If false (the default value), an exception will be thrown if assignment to a summary task is encountered during export.
2020

21+
## Examples
22+
23+
Shows how to use SkipSummaryAssignments flag.
24+
25+
```csharp
26+
var project = new Project(DataDir + "Blank2010.mpp");
27+
28+
var resource = project.Resources.Add("Resource");
29+
30+
var summaryTask = project.RootTask.Children.Add("Summary");
31+
summaryTask.Children.Add("Task");
32+
33+
// Primavera doesn't support assignments of resources to summary tasks.
34+
// So exporting such assignments to Primavera format may result in files that cannot be imported to Primavera.
35+
var assignment = project.ResourceAssignments.Add(summaryTask, resource);
36+
37+
var options = new PrimaveraXmlSaveOptions();
38+
options.SkipSummaryAssignments = true;
39+
project.Save(OutDir + "UseSkipSummaryAssignments_out.xml", options);
40+
```
41+
2142
### See Also
2243

2344
* class [PrimaveraXmlSaveOptions](../)

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,30 @@ SaveOptions options = new PdfSaveOptions
6565
project.Save(OutDir + "Legend_DefinedInView.pdf", options);
6666
```
6767

68+
Shows how to customize task bars in page legend of Gantt chart.
69+
70+
```csharp
71+
var project = new Project(DataDir + "Blank2010.mpp");
72+
73+
var pdfSaveOptions = new PdfSaveOptions();
74+
pdfSaveOptions.StartDate = project.StartDate;
75+
pdfSaveOptions.EndDate = project.FinishDate;
76+
pdfSaveOptions.PageSize = PageSize.A4;
77+
pdfSaveOptions.LegendDrawingOptions = LegendDrawingOptions.OnEveryPage;
78+
pdfSaveOptions.ViewSettings = project.Views.GetByName("&Gantt Chart");
79+
80+
pdfSaveOptions.LegendItems = new PageLegendItem[]
81+
{
82+
new PageLegendItem(BarItemType.Task, "Task"),
83+
new PageLegendItem(BarItemType.ExternalMilestone, "External Milestone"),
84+
new PageLegendItem(BarItemType.SummaryRollup, "Summary Rollup"),
85+
new PageLegendItem(BarItemType.InactiveTask, "Inactive Task"),
86+
new PageLegendItem(BarItemType.ManualSummary, "Manual Summary")
87+
};
88+
89+
project.Save(OutDir + "CustomizePageLegendItems_out.pdf", pdfSaveOptions);
90+
```
91+
6892
### See Also
6993

7094
* enum [LegendDrawingOptions](../../legenddrawingoptions/)

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,32 @@ public PageLegendItem[] LegendItems { get; set; }
1818

1919
Is only applicable when Gantt chart view is rendered.
2020

21+
## Examples
22+
23+
Shows how to customize task bars in page legend of Gantt chart.
24+
25+
```csharp
26+
var project = new Project(DataDir + "Blank2010.mpp");
27+
28+
var pdfSaveOptions = new PdfSaveOptions();
29+
pdfSaveOptions.StartDate = project.StartDate;
30+
pdfSaveOptions.EndDate = project.FinishDate;
31+
pdfSaveOptions.PageSize = PageSize.A4;
32+
pdfSaveOptions.LegendDrawingOptions = LegendDrawingOptions.OnEveryPage;
33+
pdfSaveOptions.ViewSettings = project.Views.GetByName("&Gantt Chart");
34+
35+
pdfSaveOptions.LegendItems = new PageLegendItem[]
36+
{
37+
new PageLegendItem(BarItemType.Task, "Task"),
38+
new PageLegendItem(BarItemType.ExternalMilestone, "External Milestone"),
39+
new PageLegendItem(BarItemType.SummaryRollup, "Summary Rollup"),
40+
new PageLegendItem(BarItemType.InactiveTask, "Inactive Task"),
41+
new PageLegendItem(BarItemType.ManualSummary, "Manual Summary")
42+
};
43+
44+
project.Save(OutDir + "CustomizePageLegendItems_out.pdf", pdfSaveOptions);
45+
```
46+
2147
### See Also
2248

2349
* class [PageLegendItem](../../../aspose.tasks.visualization/pagelegenditem/)

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,25 @@ Gets or sets a behavior which define how to align right end of the timescale wit
1414
public TimescaleFitBehavior TimescaleFitBehavior { get; set; }
1515
```
1616

17+
## Examples
18+
19+
Shows how to use TimescaleFitBehavior make Gantt chart's timescale fit to the end of the last page.
20+
21+
```csharp
22+
var project = new Project(DataDir + "EstimatedMilestoneTasks.mpp");
23+
24+
var view = project.DefaultView as GanttChartView;
25+
26+
PdfSaveOptions saveOptions = new PdfSaveOptions();
27+
saveOptions.PageSize = PageSize.A4;
28+
saveOptions.StartDate = project.StartDate;
29+
saveOptions.EndDate = project.FinishDate;
30+
saveOptions.ViewSettings = view;
31+
saveOptions.TimescaleFitBehavior = TimescaleFitBehavior.ScaleToEndOfPage;
32+
33+
project.Save(OutDir + "WorkWithPageSizeDefinedInView_out.pdf", saveOptions);
34+
```
35+
1736
### See Also
1837

1938
* enum [TimescaleFitBehavior](../../../aspose.tasks.visualization/timescalefitbehavior/)

english/net/aspose.tasks.visualization/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Contains helper classes for rendering.
2121
| [GanttChartColumn](./ganttchartcolumn/) | Project's view class |
2222
| [Gridline](./gridline/) | The horizontal or vertical line that appears in the project view. |
2323
| [Gridlines](./gridlines/) | Represents gridlines that appear in a GanttChart view. |
24-
| [HeaderFooterInfo](./headerfooterinfo/) | Represents header or footer data which is present in views and used for printing. |
24+
| [HeaderFooterInfo](./headerfooterinfo/) | Represents visual content of the header, footer or legend which is used for printing \ rendering of views. |
2525
| [PageInfo](./pageinfo/) | Represents page setup data which is present in MPP file format and used for printing. |
2626
| [PageLegend](./pagelegend/) | Represents a page legend which is used for project printing. |
2727
| [PageLegendItem](./pagelegenditem/) | Represents an item of page legend of Gantt chart. |

english/net/aspose.tasks.visualization/headerfooterinfo/_index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Class HeaderFooterInfo
33
second_title: Aspose.Tasks for .NET API Reference
4-
description: Aspose.Tasks.Visualization.HeaderFooterInfo class. Represents header or footer data which is present in views and used for printing
4+
description: Aspose.Tasks.Visualization.HeaderFooterInfo class. Represents visual content of the header footer or legend which is used for printing rendering of views
55
type: docs
66
weight: 3040
77
url: /net/aspose.tasks.visualization/headerfooterinfo/
88
---
99
## HeaderFooterInfo class
1010

11-
Represents header or footer data which is present in views and used for printing.
11+
Represents visual content of the header, footer or legend which is used for printing \ rendering of views.
1212

1313
```csharp
1414
public class HeaderFooterInfo
@@ -24,15 +24,15 @@ public class HeaderFooterInfo
2424

2525
| Name | Description |
2626
| --- | --- |
27-
| [CenteredImage](../../aspose.tasks.visualization/headerfooterinfo/centeredimage/) { get; set; } | Gets or sets the centered image to be displayed in the header or footer. |
27+
| [CenteredImage](../../aspose.tasks.visualization/headerfooterinfo/centeredimage/) { get; set; } | Gets or sets the centered image to be displayed in the parent element. |
2828
| [CenteredImageSize](../../aspose.tasks.visualization/headerfooterinfo/centeredimagesize/) { getset; } | Gets or sets the displayed size of the center image. |
29-
| [CenteredText](../../aspose.tasks.visualization/headerfooterinfo/centeredtext/) { getset; } | Gets or sets the centered text to display in the header or footer . |
30-
| [LeftImage](../../aspose.tasks.visualization/headerfooterinfo/leftimage/) { getset; } | Gets or sets the left aligned image to be displayed in the header or footer. |
29+
| [CenteredText](../../aspose.tasks.visualization/headerfooterinfo/centeredtext/) { getset; } | Gets or sets the centered text to display in the parent element. |
30+
| [LeftImage](../../aspose.tasks.visualization/headerfooterinfo/leftimage/) { getset; } | Gets or sets the left aligned image to be displayed in the parent element. |
3131
| [LeftImageSize](../../aspose.tasks.visualization/headerfooterinfo/leftimagesize/) { getset; } | Gets or sets the displayed size of the left image. |
32-
| [LeftText](../../aspose.tasks.visualization/headerfooterinfo/lefttext/) { getset; } | Gets or sets the left aligned text to display in the header or footer. |
33-
| [RightImage](../../aspose.tasks.visualization/headerfooterinfo/rightimage/) { getset; } | Gets or sets the right aligned image to be displayed in the header or footer. |
32+
| [LeftText](../../aspose.tasks.visualization/headerfooterinfo/lefttext/) { getset; } | Gets or sets the left aligned text to display in the parent element. |
33+
| [RightImage](../../aspose.tasks.visualization/headerfooterinfo/rightimage/) { getset; } | Gets or sets the right aligned image to be displayed in the parent element. |
3434
| [RightImageSize](../../aspose.tasks.visualization/headerfooterinfo/rightimagesize/) { getset; } | Gets or sets the displayed size of the right image. |
35-
| [RightText](../../aspose.tasks.visualization/headerfooterinfo/righttext/) { getset; } | Gets or sets the right aligned text to display in the header or footer. |
35+
| [RightText](../../aspose.tasks.visualization/headerfooterinfo/righttext/) { getset; } | Gets or sets the right aligned text to display in the parent element. |
3636

3737
## Examples
3838

english/net/aspose.tasks.visualization/headerfooterinfo/centeredimage/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: HeaderFooterInfo.CenteredImage
33
second_title: Aspose.Tasks for .NET API Reference
4-
description: HeaderFooterInfo property. Gets or sets the centered image to be displayed in the header or footer
4+
description: HeaderFooterInfo property. Gets or sets the centered image to be displayed in the parent element
55
type: docs
66
weight: 20
77
url: /net/aspose.tasks.visualization/headerfooterinfo/centeredimage/
88
---
99
## HeaderFooterInfo.CenteredImage property
1010

11-
Gets or sets the centered image to be displayed in the header or footer.
11+
Gets or sets the centered image to be displayed in the parent element.
1212

1313
```csharp
1414
public Image CenteredImage { get; set; }

english/net/aspose.tasks.visualization/headerfooterinfo/centeredtext/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: HeaderFooterInfo.CenteredText
33
second_title: Aspose.Tasks for .NET API Reference
4-
description: HeaderFooterInfo property. Gets or sets the centered text to display in the header or footer
4+
description: HeaderFooterInfo property. Gets or sets the centered text to display in the parent element
55
type: docs
66
weight: 40
77
url: /net/aspose.tasks.visualization/headerfooterinfo/centeredtext/
88
---
99
## HeaderFooterInfo.CenteredText property
1010

11-
Gets or sets the centered text to display in the header or footer .
11+
Gets or sets the centered text to display in the parent element.
1212

1313
```csharp
1414
public string CenteredText { get; set; }

english/net/aspose.tasks.visualization/headerfooterinfo/leftimage/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: HeaderFooterInfo.LeftImage
33
second_title: Aspose.Tasks for .NET API Reference
4-
description: HeaderFooterInfo property. Gets or sets the left aligned image to be displayed in the header or footer
4+
description: HeaderFooterInfo property. Gets or sets the left aligned image to be displayed in the parent element
55
type: docs
66
weight: 50
77
url: /net/aspose.tasks.visualization/headerfooterinfo/leftimage/
88
---
99
## HeaderFooterInfo.LeftImage property
1010

11-
Gets or sets the left aligned image to be displayed in the header or footer.
11+
Gets or sets the left aligned image to be displayed in the parent element.
1212

1313
```csharp
1414
public Image LeftImage { get; set; }

0 commit comments

Comments
 (0)