Skip to content

Commit ad8dfb5

Browse files
Aspose.Slides for .NET 24.12 API Reference
1 parent 1d834bb commit ad8dfb5

File tree

7 files changed

+20
-16
lines changed

7 files changed

+20
-16
lines changed

content/net/english/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@ is_root: true
3232
| [Aspose.Slides.Vba](./aspose.slides.vba) | Contains classes for work with VBA macros |
3333
| [Aspose.Slides.Warnings](./aspose.slides.warnings) | Contains classes that represents various kind of warnings |
3434

35-
3635
<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Slides.dll -->

content/net/english/aspose.slides.export/pdfoptions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ using (Presentation presentation = new Presentation("SelectedSlides.pptx"))
120120
//auxPresentation.SlideSize.SetSize(presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height,SlideSizeScaleType.EnsureFit);
121121
auxPresentation.SlideSize.SetSize(612F, 792F, SlideSizeScaleType.EnsureFit);
122122
PdfOptions pdfOptions = new PdfOptions();
123-
pdfOptions.NotesCommentsLayouting.NotesPosition = NotesPositions.BottomFull;
123+
pdfOptions.SlidesLayoutOptions = new NotesCommentsLayoutingOptions() { NotesPosition = NotesPositions.BottomFull };
124124
auxPresentation.Save("PDFnotes_out.pdf", SaveFormat.Pdf, pdfOptions);
125125
}
126126
}

content/net/english/aspose.slides.export/renderingoptions/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class RenderingOptions : SaveOptions, IRenderingOptions
3939
using (Presentation pres = new Presentation("pres.pptx"))
4040
{
4141
IRenderingOptions renderingOpts = new RenderingOptions();
42-
renderingOpts.NotesCommentsLayouting.NotesPosition = NotesPositions.BottomTruncated;
42+
renderingOpts.SlidesLayoutOptions = new NotesCommentsLayoutingOptions() { NotesPosition = NotesPositions.BottomTruncated };
4343

4444
pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-Original.png", ImageFormat.Png);
4545

content/net/english/aspose.slides.export/tiffoptions/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ using (Presentation pres = new Presentation("Convert_Tiff_Custom.pptx"))
6464
TiffOptions opts = new TiffOptions();
6565
// Setting compression type
6666
opts.CompressionType = TiffCompressionTypes.Default;
67-
INotesCommentsLayoutingOptions notesOptions = opts.NotesCommentsLayouting;
67+
NotesCommentsLayoutingOptions notesOptions = new NotesCommentsLayoutingOptions();
6868
notesOptions.NotesPosition = NotesPositions.BottomFull;
69+
opts.SlidesLayoutOption = notesOptions;
6970
// Compression Types
7071
// Default - Specifies the default compression scheme (LZW).
7172
// None - Specifies no compression.

content/net/english/aspose.slides/ishape/getbaseplaceholder/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ using (Presentation pres = new Presentation("sample.pptx"))
2424
{
2525
ISlide slide = pres.Slides[0];
2626
IShape shape = slide.Shapes[0];
27-
IEffect[] shapeEffects = slide.LayoutSlide.Timeline.MainSequence.GetEffectsByShape(shape);
27+
IEffect[] shapeEffects = slide.Timeline.MainSequence.GetEffectsByShape(shape);
2828

2929
IShape layoutShape = shape.GetBasePlaceholder();
3030
IEffect[] layoutShapeEffects = slide.LayoutSlide.Timeline.MainSequence.GetEffectsByShape(layoutShape);

content/net/english/aspose.slides/shape/getbaseplaceholder/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ using (Presentation pres = new Presentation("sample.pptx"))
2424
{
2525
ISlide slide = pres.Slides[0];
2626
IShape shape = slide.Shapes[0];
27-
IEffect[] shapeEffects = slide.LayoutSlide.Timeline.MainSequence.GetEffectsByShape(shape);
27+
IEffect[] shapeEffects = slide.Timeline.MainSequence.GetEffectsByShape(shape);
2828

2929
IShape layoutShape = shape.GetBasePlaceholder();
3030
IEffect[] layoutShapeEffects = slide.LayoutSlide.Timeline.MainSequence.GetEffectsByShape(layoutShape);

content/net/english/aspose.slides/slide/getimage/_index.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Image object.
182182

183183
| exception | condition |
184184
| --- | --- |
185-
| InvalidOperationException | Thrown when options.NotesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull. |
185+
| InvalidOperationException | Thrown when options.SlideLayoutOption is NotesCommentsLayoutingOptions and its property NotesPosition takes the value NotesPositions.BottomFull. |
186186

187187
### See Also
188188

@@ -257,20 +257,24 @@ The following example shows how to converting slides With notes and comments to
257257
```csharp
258258
using (Presentation pres = new Presentation("PresentationNotesComments.pptx"))
259259
{
260-
// Creates the rendering options
260+
// Create the rendering options
261261
IRenderingOptions options = new RenderingOptions();
262+
// Create notes and comments layouting options
263+
NotesCommentsLayoutingOptions notesCommentsLayouting = new NotesCommentsLayoutingOptions();
262264
// Sets the position of the notes on the page
263-
options.NotesCommentsLayouting.NotesPosition = NotesPositions.BottomTruncated;
265+
notesCommentsLayouting.NotesPosition = NotesPositions.BottomTruncated;
264266
// Sets the position of the comments on the page
265-
options.NotesCommentsLayouting.CommentsPosition = CommentsPositions.Right;
267+
notesCommentsLayouting.CommentsPosition = CommentsPositions.Right;
266268
// Sets the width of the comment output area
267-
options.NotesCommentsLayouting.CommentsAreaWidth = 500;
269+
notesCommentsLayouting.CommentsAreaWidth = 500;
268270
// Sets the color for the comments area
269-
options.NotesCommentsLayouting.CommentsAreaColor = Color.AntiqueWhite;
270-
// Converts the first slide of the presentation to a Bitmap object
271-
IImage bmp = pres.Slides[0].GetImage(options, 2f, 2f);
271+
notesCommentsLayouting.CommentsAreaColor = Color.AntiqueWhite;
272+
// Set layout options for rendering
273+
options.SlidesLayoutOptions = notesCommentsLayouting;
274+
// Converts the first slide of the presentation to a IImage object
275+
IImage image = pres.Slides[0].GetImage(options, 2f, 2f);
272276
// Saves the image in the GIF format
273-
bmp.Save("Slide_Notes_Comments_0.gif", ImageFormat.Gif);
277+
image.Save("Slide_Notes_Comments_0.gif", ImageFormat.Gif);
274278
}
275279
```
276280

@@ -305,7 +309,7 @@ Image object.
305309

306310
| exception | condition |
307311
| --- | --- |
308-
| InvalidOperationException | Thrown when options.NotesCommentsLayouting.NotesPosition takes the value NotesPositions.BottomFull |
312+
| InvalidOperationException | Thrown when options.SlideLayoutOption is NotesCommentsLayoutingOptions and its property NotesPosition takes the value NotesPositions.BottomFull. |
309313

310314
### See Also
311315

0 commit comments

Comments
 (0)