Skip to content

Commit 3e54d5f

Browse files
Aspose.Slides for C++ 24.11 API Reference
1 parent 9d07660 commit 3e54d5f

File tree

10 files changed

+82
-50
lines changed

10 files changed

+82
-50
lines changed

content/cpp/english/aspose.slides/commonslideviewproperties/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class CommonSlideViewProperties : public Aspose::Slides::ICommonSlideViewPropert
2525
| static **bool** [Equals](../../system/object/equals/)(**float** const\&, **float** const\&) | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. |
2626
| static **bool** [Equals](../../system/object/equals/)(**double** const\&, **double** const\&) | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. |
2727
| virtual **bool** [FastCast](../../system/object/fastcast/)(const Details::FastRttiBase\&, void **) const | For internal purposes only. |
28+
| [System::SharedPtr](../../system/sharedptr/)\<[IDrawingGuide](../idrawingguide/)\> [get_DrawingGuide](./get_drawingguide/)(**int32_t**) override | Returns drawing guide at the specified index. Read-only [Aspose::Slides::IDrawingGuide](../idrawingguide/) |
2829
| [System::SharedPtr](../../system/sharedptr/)\<[IDrawingGuidesCollection](../idrawingguidescollection/)\> [get_DrawingGuides](./get_drawingguides/)() override | Returns the collection of the drawing guides. Read-only [IDrawingGuidesCollection](../idrawingguidescollection/) |
2930
| **int32_t** [get_Scale](./get_scale/)() override | Specifies the view scaling ratio in percentages. Read **int32_t**. |
3031
| **bool** [get_VariableScale](./get_variablescale/)() override | Specifies that the view content should automatically scale to best fit the current window size. Read **bool**. |
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: get_DrawingGuide()
3+
second_title: Aspose.Slides for C++ API Reference
4+
description: "Returns drawing guide at the specified index. Read-only Aspose::Slides::IDrawingGuide"
5+
type: docs
6+
weight: 66
7+
url: /aspose.slides/commonslideviewproperties/get_drawingguide/
8+
---
9+
## CommonSlideViewProperties::get_DrawingGuide(int32_t) method
10+
11+
12+
Returns drawing guide at the specified index. Read-only [Aspose::Slides::IDrawingGuide](../../idrawingguide/)
13+
14+
```cpp
15+
System::SharedPtr<IDrawingGuide> Aspose::Slides::CommonSlideViewProperties::get_DrawingGuide(int32_t index) override
16+
```
17+
18+
## See Also
19+
20+
* Typedef [SharedPtr](../../../system/sharedptr/)
21+
* Class [IDrawingGuide](../../idrawingguide/)
22+
* Class [CommonSlideViewProperties](../)
23+
* Namespace [Aspose::Slides](../../)
24+
* Library [Aspose.Slides](../../../)

content/cpp/english/aspose.slides/commonslideviewproperties/get_drawingguides/_index.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ System::SharedPtr<IDrawingGuidesCollection> Aspose::Slides::CommonSlideViewPrope
2020

2121
The following sample code shows how to add the new drawing guides in a PowerPoint presentation.
2222
```cpp
23-
[C#]
24-
using (Presentation pres = new Presentation())
25-
{
26-
var slideSize = pres.SlideSize.Size;
27-
28-
IDrawingGuidesCollection guides = pres.ViewProperties.SlideViewProperties.DrawingGuides;
29-
// Adding the new vertical drawing guide to the right of the slide center
30-
guides.Add(Orientation.Vertical, slideSize.Width / 2 + 12.5f);
31-
// Adding the new horizontal drawing guide below the slide center
32-
guides.Add(Orientation.Horizontal, slideSize.Height / 2 + 12.5f);
33-
34-
pres.Save("DrawingGuides_out.pptx", SaveFormat.Pptx);
35-
}
23+
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
24+
System::Drawing::SizeF slideSize = pres->get_SlideSize()->get_Size();
25+
26+
System::SharedPtr<IDrawingGuidesCollection> guides = pres->get_ViewProperties()->get_SlideViewProperties()->get_DrawingGuides();
27+
// Adding the new vertical drawing guide to the right of the slide center
28+
guides->Add(Orientation::Vertical, slideSize.get_Width() / 2 + 12.5f);
29+
// Adding the new horizontal drawing guide below the slide center
30+
guides->Add(Orientation::Horizontal, slideSize.get_Height() / 2 + 12.5f);
31+
32+
pres->Save(u"DrawingGuides_out.pptx", SaveFormat::Pptx);
3633
```
3734
3835
## See Also

content/cpp/english/aspose.slides/icommonslideviewproperties/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ICommonSlideViewProperties : public virtual System::Object
2525
| static **bool** [Equals](../../system/object/equals/)(**float** const\&, **float** const\&) | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. |
2626
| static **bool** [Equals](../../system/object/equals/)(**double** const\&, **double** const\&) | Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. |
2727
| virtual **bool** [FastCast](../../system/object/fastcast/)(const Details::FastRttiBase\&, void **) const | For internal purposes only. |
28+
| virtual [System::SharedPtr](../../system/sharedptr/)\<[IDrawingGuide](../idrawingguide/)\> [get_DrawingGuide](./get_drawingguide/)(**int32_t**) | Returns drawing guide at the specified index. Read-only [Aspose::Slides::IDrawingGuide](../idrawingguide/) |
2829
| virtual [System::SharedPtr](../../system/sharedptr/)\<[IDrawingGuidesCollection](../idrawingguidescollection/)\> [get_DrawingGuides](./get_drawingguides/)() | Returns the collection of the drawing guides. Read-only [IDrawingGuidesCollection](../idrawingguidescollection/) |
2930
| virtual **int32_t** [get_Scale](./get_scale/)() | Specifies the view scaling ratio in percentages. Read **int32_t**. |
3031
| virtual **bool** [get_VariableScale](./get_variablescale/)() | Specifies that the view content should automatically scale to best fit the current window size. Read **bool**. |
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: get_DrawingGuide()
3+
second_title: Aspose.Slides for C++ API Reference
4+
description: "Returns drawing guide at the specified index. Read-only Aspose::Slides::IDrawingGuide"
5+
type: docs
6+
weight: 66
7+
url: /aspose.slides/icommonslideviewproperties/get_drawingguide/
8+
---
9+
## ICommonSlideViewProperties::get_DrawingGuide(int32_t) method
10+
11+
12+
Returns drawing guide at the specified index. Read-only [Aspose::Slides::IDrawingGuide](../../idrawingguide/)
13+
14+
```cpp
15+
virtual System::SharedPtr<IDrawingGuide> Aspose::Slides::ICommonSlideViewProperties::get_DrawingGuide(int32_t index)=0
16+
```
17+
18+
## See Also
19+
20+
* Typedef [SharedPtr](../../../system/sharedptr/)
21+
* Class [IDrawingGuide](../../idrawingguide/)
22+
* Class [ICommonSlideViewProperties](../)
23+
* Namespace [Aspose::Slides](../../)
24+
* Library [Aspose.Slides](../../../)

content/cpp/english/aspose.slides/icommonslideviewproperties/get_drawingguides/_index.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ virtual System::SharedPtr<IDrawingGuidesCollection> Aspose::Slides::ICommonSlide
2020

2121
The following sample code shows how to add the new drawing guides in a PowerPoint presentation.
2222
```cpp
23-
[C#]
24-
using (Presentation pres = new Presentation())
25-
{
26-
var slideSize = pres.SlideSize.Size;
27-
28-
IDrawingGuidesCollection guides = pres.ViewProperties.SlideViewProperties.DrawingGuides;
29-
// Adding the new vertical drawing guide to the right of the slide center
30-
guides.Add(Orientation.Vertical, slideSize.Width / 2 + 12.5f);
31-
// Adding the new horizontal drawing guide below the slide center
32-
guides.Add(Orientation.Horizontal, slideSize.Height / 2 + 12.5f);
33-
34-
pres.Save("DrawingGuides_out.pptx", SaveFormat.Pptx);
35-
}
23+
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
24+
System::Drawing::SizeF slideSize = pres->get_SlideSize()->get_Size();
25+
26+
System::SharedPtr<IDrawingGuidesCollection> guides = pres->get_ViewProperties()->get_SlideViewProperties()->get_DrawingGuides();
27+
// Adding the new vertical drawing guide to the right of the slide center
28+
guides->Add(Orientation::Vertical, slideSize.get_Width() / 2 + 12.5f);
29+
// Adding the new horizontal drawing guide below the slide center
30+
guides->Add(Orientation::Horizontal, slideSize.get_Height() / 2 + 12.5f);
31+
32+
pres->Save(u"DrawingGuides_out.pptx", SaveFormat::Pptx);
3633
```
3734
3835
## See Also

content/cpp/english/aspose.slides/iviewproperties/get_gridspacing/_index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ The grid spacing value must be a positive number. The typical value range is fro
2222

2323
The following sample code shows how to change the grid spacing in a PowerPoint presentation.
2424
```cpp
25-
[C#]
26-
using (Presentation pres = new Presentation())
27-
{
28-
pres.ViewProperties.GridSpacing = 72f;
29-
pres.Save("GridSpacing_out.pptx", SaveFormat.Pptx);
30-
}
25+
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
26+
pres->get_ViewProperties()->set_GridSpacing(72.0f);
27+
pres->Save(u"GridSpacing_out.pptx", SaveFormat::Pptx);
3128
```
3229
3330
## See Also

content/cpp/english/aspose.slides/iviewproperties/set_gridspacing/_index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ The grid spacing value must be a positive number. The typical value range is fro
2222
2323
The following sample code shows how to change the grid spacing in a PowerPoint presentation.
2424
```cpp
25-
[C#]
26-
using (Presentation pres = new Presentation())
27-
{
28-
pres.ViewProperties.GridSpacing = 72f;
29-
pres.Save("GridSpacing_out.pptx", SaveFormat.Pptx);
30-
}
25+
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
26+
pres->get_ViewProperties()->set_GridSpacing(72.0f);
27+
pres->Save(u"GridSpacing_out.pptx", SaveFormat::Pptx);
3128
```
3229

3330
## See Also

content/cpp/english/aspose.slides/viewproperties/get_gridspacing/_index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ The grid spacing value must be a positive number . The typical value range is fr
2222

2323
The following sample code shows how to change the grid spacing in a PowerPoint presentation.
2424
```cpp
25-
[C#]
26-
using (Presentation pres = new Presentation())
27-
{
28-
pres.ViewProperties.GridSpacing = 72f;
29-
pres.Save("GridSpacing_out.pptx", SaveFormat.Pptx);
30-
}
25+
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
26+
pres->get_ViewProperties()->set_GridSpacing(72.0f);
27+
pres->Save(u"GridSpacing_out.pptx", SaveFormat::Pptx);
3128
```
3229
3330
## See Also

content/cpp/english/aspose.slides/viewproperties/set_gridspacing/_index.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,9 @@ The grid spacing value must be a positive number . The typical value range is fr
2222
2323
The following sample code shows how to change the grid spacing in a PowerPoint presentation.
2424
```cpp
25-
[C#]
26-
using (Presentation pres = new Presentation())
27-
{
28-
pres.ViewProperties.GridSpacing = 72f;
29-
pres.Save("GridSpacing_out.pptx", SaveFormat.Pptx);
30-
}
25+
System::SharedPtr<Presentation> pres = System::MakeObject<Presentation>();
26+
pres->get_ViewProperties()->set_GridSpacing(72.0f);
27+
pres->Save(u"GridSpacing_out.pptx", SaveFormat::Pptx);
3128
```
3229

3330
## See Also

0 commit comments

Comments
 (0)