### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathlimit/base Example of using MathLimit.Base property. ```csharp MathLimit limitElement = new MathLimit(new MathematicalText("lim"), new MathematicalText("𝑛→∞")); IMathElement baseArg = limitElement.Base; ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.export/ipdfoptions/includeoledata Example of how to use IncludeOleData. ```csharp using (Presentation pres = new Presentation("pres.pptx")) { PdfOptions options = new PdfOptions { IncludeOleData = true }; pres.Save("pres.pdf", SaveFormat.Pdf, options); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/icommonslideviewproperties/drawingguides The following sample code shows how to add the new drawing guides in a PowerPoint presentation. ```C# using (Presentation pres = new Presentation()) { var slideSize = pres.SlideSize.Size; IDrawingGuidesCollection guides = pres.ViewProperties.SlideViewProperties.DrawingGuides; // Adding the new vertical drawing guide to the right of the slide center guides.Add(Orientation.Vertical, slideSize.Width / 2 + 12.5f); // Adding the new horizontal drawing guide below the slide center guides.Add(Orientation.Horizontal, slideSize.Height / 2 + 12.5f); pres.Save("DrawingGuides_out.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.export/gifoptions/transitionfps Example of setting TransitionFps. ```C# using (Presentation pres = new Presentation("pres.pptx")) { pres.Save("pres.gif", SaveFormat.Gif, new GifOptions { TransitionFps = 60 }); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathlimit/upperlimit Example of using IMathLimit.UpperLimit. ```csharp [C#] IMathLimit limitElement = new MathLimit(new MathematicalText("lim"), new MathematicalText("𝑛→∞")); limitElement.UpperLimit = false; ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathbox Example of creating an IMathBox. ```csharp IMathBox box = new MathematicalText("==").ToBox(); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/presentedbyspeaker/presentedbyspeaker Example of how to use the PresentedBySpeaker class. ```csharp using (Presentation pres = new Presentation()) { pres.SlideShowSettings.SlideShowType = new PresentedBySpeaker(); pres.Save("pres.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/imasterslide/drawingguides Example of how to add a vertical drawing guide to the right of the slide center. ```csharp using (Presentation pres = new Presentation()) { var slideSize = pres.SlideSize.Size; IDrawingGuidesCollection guides = pres.Masters[0].DrawingGuides; // Adding the new vertical drawing guide to the right of the slide center guides.Add(Orientation.Vertical, slideSize.Width / 2 + 20f); pres.Save("MasterSlideDrawingGuides_out.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathparagraph/tolatex Example of using ToLatex method ```C# [C#] IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height); IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph; mathParagraph.Add(new MathematicalText("a").Join("+").Join(new MathematicalText("b").Join("=").Join(new MathematicalText("c")))); string mathLatex = mathParagraph.ToLatex(); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/summaryzoomsection/description Example of using the Description property. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomSection zoomSection = zoomFrame.SummaryZoomCollection[1]; zoomSection.Description = "Description"; } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathblock/item Example usage of the MathBlock indexer. ```csharp [C#] MathBlock mathBlock = new MathBlock(new MathematicalText("x")); IMathElement firstElem = mathBlock[0]; ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathlimit/mathlimit Example of using MathLimit with an upper limit. ```csharp [C#] MathLimit limitElement = new MathLimit(new MathematicalText("lim"), new MathematicalText("𝑛→∞"), false); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathdelimiter/beginningcharacter Example of setting the BeginningCharacter property. ```csharp IMathDelimiter delimiter = new MathematicalText("x").Join("y").Enclose(); delimiter.BeginningCharacter = '['; ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathlimit/mathlimit Example of using MathLimit with a lower limit. ```csharp [C#] MathLimit limitElement = new MathLimit(new MathematicalText("lim"), new MathematicalText("𝑛→∞")); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathradical/mathradical Example of using MathRadical. ```csharp MathRadical radical = new MathRadical(new MathematicalText("x"), new MathematicalText("3")); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomsection/description Example of using the Description property. ```csharp using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomSection zoomSection = zoomFrame.SummaryZoomCollection[1]; zoomSection.Description = "Description"; } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.export/ipresentationanimationplayer Demonstrates how to use IPresentationAnimationPlayer to get animation frames. ```csharp using (Presentation presentation = new Presentation("animated.pptx")) { using (var animationsGenerator = new PresentationAnimationsGenerator(presentation.SlideSize.Size.ToSize())) { animationsGenerator.NewAnimation += animationPlayer => { Console.WriteLine($"Animation total duration: {animationPlayer.Duration}"); animationPlayer.SetTimePosition(0); animationPlayer.GetFrame().Save("firstFrame.png"); animationPlayer.SetTimePosition(animationPlayer.Duration); animationPlayer.GetFrame().Save("lastFrame.png"); }; animationsGenerator.Run(presentation.Slides); } } ``` -------------------------------- ### Example of getting Summary Zoom Section element by index Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomframe/layout The example demonstrates getting Summary Zoom Section element by index: ```C# using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = pres.Slides[1].Shapes[0] as ISummaryZoomFrame; ZoomLayout layout = zoomFrame.Layout; } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.export/igifoptions/defaultdelay Example of setting the DefaultDelay property. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { pres.Save("pres.gif", SaveFormat.Gif, new GifOptions { DefaultDelay = 2000 }); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathmatrix/item Example of using the MathMatrix indexer. ```csharp [C#] IMathMatrix matrix = new MathMatrix(2, 3); matrix[0, 0] = new MathematicalText("item.1.1"); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.excel/exceldatacell/value Example of how to get the value of an Excel cell. ```C# [C#] ExcelDataWorkbook wb = new ExcelDataWorkbook(testFile); IExcelDataCell cell = wb.GetCell(1, 1, 1); Console.WriteLine(cell.Value.ToString()); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.excel/exceldatacell/name Example of how to get the name of a chart data cell. ```csharp [C#] ExcelDataWorkbook wb = new ExcelDataWorkbook(testFile); IExcelDataCell cell = wb.GetCell(1, 1, 1); Console.WriteLine(cell.Name); //Output: "B2" ``` -------------------------------- ### Start Property Source: https://reference.aspose.com/slides/net/aspose.slides/slidesrange/start Gets or sets the start of the range. ```csharp public uint Start { get; set; } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides/summaryzoomsection/title Example of setting the Title property. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomSection zoomSection = zoomFrame.SummaryZoomCollection[1]; zoomSection.Title = "Title"; } ``` -------------------------------- ### Example of getting shape’s effective fill format properties Source: https://reference.aspose.com/slides/net/aspose.slides/fillformat/geteffective This example demonstrates getting shape’s effective fill format properties. ```csharp [C#] using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { IFillFormatEffectiveData effectiveFillFormat = pres.Slides[0].Shapes[0].FillFormat.GetEffective(); Console.WriteLine("Type: " + effectiveFillFormat.FillType); sswitch (effectiveFillFormat.FillType) { case FillType.Solid: Console.WriteLine("Fill color: " + effectiveFillFormat.SolidFillColor); break; case FillType.Pattern: Console.WriteLine("Pattern style: " + effectiveFillFormat.PatternFormat.PatternStyle); Console.WriteLine("Fore color: " + effectiveFillFormat.PatternFormat.ForeColor); Console.WriteLine("Back color: " + effectiveFillFormat.PatternFormat.BackColor); break; case FillType.Gradient: Console.WriteLine("Gradient direction: " + effectiveFillFormat.GradientFormat.GradientDirection); Console.WriteLine("Gradient stops count: " + effectiveFillFormat.GradientFormat.GradientStops.Count); break; case FillType.Picture: Console.WriteLine("Picture width: " + effectiveFillFormat.PictureFillFormat.Picture.Image.Width); Console.WriteLine("Picture height: " + effectiveFillFormat.PictureFillFormat.Picture.Image.Height); break; } } ``` -------------------------------- ### SetUpperLimit(string) Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathelement/setupperlimit This C# code example demonstrates how to use the SetUpperLimit method with a string parameter to set an upper limit for a mathematical expression. ```csharp IMathElement baseElement = new MathematicalText("y"); var limitElement = baseElement.SetUpperLimit("y−>1"); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathmatrix/insertcolumnafter Example of using InsertColumnAfter. ```C# IMathMatrix matrix = new MathMatrix(2, 3); matrix.InsertColumnAfter(0); ``` -------------------------------- ### ShapeType Property Example Source: https://reference.aspose.com/slides/net/aspose.slides/igeometryshape/shapetype Example of how to get and set the ShapeType property. ```csharp public ShapeType ShapeType { get; set; } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathmatrix/columngap Example of setting ColumnGap and ColumnGapRule for a MathMatrix. ```C# IMathMatrix matrix = new MathMatrix(2, 3); matrix.ColumnGapRule = MathSpacingRules.Exactly; matrix.ColumnGap = 20; ``` -------------------------------- ### Example of getting shape’s effective line format properties Source: https://reference.aspose.com/slides/net/aspose.slides/lineformat/geteffective This example demonstrates getting shape’s effective line format properties. ```csharp [C#] using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { ILineFormatEffectiveData effectiveLineFormat = pres.Slides[0].Shapes[0].LineFormat.GetEffective(); Console.WriteLine("Style: " + effectiveLineFormat.Style); Console.WriteLine("Width: " + effectiveLineFormat.Width); Console.WriteLine("Fill type: " + effectiveLineFormat.FillFormat.FillType); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathdelimiter/beginningcharacter Example of setting the BeginningCharacter property. ```csharp [C#] IMathDelimiter delimiter = new MathematicalText("x").Join("y").Enclose(); delimiter.BeginningCharacter = '['; ``` -------------------------------- ### SetUpperLimit(string) Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathelementbase/setupperlimit Takes upper limit ```csharp public IMathLimit SetUpperLimit(string limit) ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomsectioncollection/indexof The example demonstrates getting Summary Zoom Section element by index. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0]; ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection; ISummaryZoomSection selectedObject = collection.GetSummarySection(pres.Sections[2]); int idx = collection.IndexOf(selectedObject); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.export/irenderingoptions Demonstrates how to use IRenderingOptions to control rendering behavior, including setting slide layout options and default fonts. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { IRenderingOptions renderingOpts = new RenderingOptions(); renderingOpts.SlidesLayoutOptions = new NotesCommentsLayoutingOptions { NotesPosition = NotesPositions.BottomTruncated}; pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-Original.png", ImageFormat.Png); renderingOpts.DefaultRegularFont = "Arial Black"; pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-ArialBlackDefault.png", ImageFormat.Png); renderingOpts.DefaultRegularFont = "Arial Narrow"; pres.Slides[0].GetThumbnail(renderingOpts).Save("pres-ArialNarrowDefault.png", ImageFormat.Png); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides/iparagraph/getlinescount Example of using GetLinesCount to get the number of lines in a paragraph. ```csharp [C#] using (Presentation pres = new Presentation()) { ISlide sld = pres.Slides[0]; IAutoShape ashp = sld.Shapes.AddAutoShape(ShapeType.Rectangle, 150, 75, 150, 50); IParagraph para = ashp.TextFrame.Paragraphs[0]; IPortion portion = para.Portions[0]; portion.Text = "Aspose Paragraph GetLinesCount() Example"; Console.WriteLine("Lines Count = {0}", para.GetLinesCount()); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathblockcollection/item Example of using the Item indexer. ```csharp [C#] IMathBlockCollection blockCollection = new MathParagraph(); blockCollection.Add(new MathBlock(new MathematicalText("block1"))); blockCollection.Add(new MathBlock(new MathematicalText("block2"))); IMathBlock block = blockCollection[1]; ``` -------------------------------- ### GetGeometryPaths Example Source: https://reference.aspose.com/slides/net/aspose.slides/geometryshape/getgeometrypaths This example demonstrates how to get and modify geometry paths of a shape. ```C# using (Presentation pres = new Presentation()) { GeometryShape shape = pres.Slides[0].Shapes.AddAutoShape(ShapeType.Rectangle, 100, 100, 200, 100) as GeometryShape; IGeometryPath geometryPath = shape.GetGeometryPaths()[0]; geometryPath.LineTo(100, 50, 1); geometryPath.LineTo(100, 50, 4); shape.SetGeometryPath(geometryPath); pres.Save("output.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/effectformat/geteffective This example demonstrates getting some of shape’s effective effect properties. ```csharp [C#] using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { IEffectFormatEffectiveData effectiveEffectFormat = pres.Slides[0].Shapes[0].EffectFormat.GetEffective(); if (effectiveEffectFormat.IsNoEffects) { Console.WriteLine("The shape has not effects applied."); } else { if (effectiveEffectFormat.BlurEffect != null) Console.WriteLine("Blur effect radius: " + effectiveEffectFormat.BlurEffect.Radius); if (effectiveEffectFormat.FillOverlayEffect != null) Console.WriteLine("Fill overlay effect fill type: " + effectiveEffectFormat.FillOverlayEffect.FillFormat.FillType); if (effectiveEffectFormat.GlowEffect != null) Console.WriteLine("Glow effect color: " + effectiveEffectFormat.GlowEffect.Color); if (effectiveEffectFormat.InnerShadowEffect != null) Console.WriteLine("Inner shadow effect shadow color: " + effectiveEffectFormat.InnerShadowEffect.ShadowColor); if (effectiveEffectFormat.OuterShadowEffect != null) Console.WriteLine("Outer shadow effect shadow color: " + effectiveEffectFormat.OuterShadowEffect.ShadowColor); if (effectiveEffectFormat.PresetShadowEffect != null) Console.WriteLine("Preset shadow effect shadow color: " + effectiveEffectFormat.PresetShadowEffect.ShadowColor); if (effectiveEffectFormat.ReflectionEffect != null) Console.WriteLine("Reflection effect distance: " + effectiveEffectFormat.ReflectionEffect.Distance); if (effectiveEffectFormat.SoftEdgeEffect != null) Console.WriteLine("Soft edge effect radius: " + effectiveEffectFormat.SoftEdgeEffect.Radius); } } ``` -------------------------------- ### SetUpperLimit(IMathElement) Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathelement/setupperlimit This C# code example demonstrates how to use the SetUpperLimit method with an IMathElement parameter to set an upper limit for a mathematical expression. ```csharp IMathElement baseElement = new MathematicalText("y"); IMathElement limitValue = new MathematicalText("y−>1"); var limitElement = baseElement.SetUpperLimit(limitValue); ``` -------------------------------- ### Get index of Tahoma Source: https://reference.aspose.com/slides/net/aspose.slides/fontfallbackrule/indexof Example demonstrating how to get the index of a font within a FontFallBackRule. ```csharp [C#] // Create a rule contains a list of fonts. IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma, Times New Roman"); // Get index of Tahoma. int tahomaIndex = newRule.IndexOf("Tahoma"); ``` -------------------------------- ### Getting Effective Background Properties Source: https://reference.aspose.com/slides/net/aspose.slides/background/geteffective This example demonstrates getting effective background properties. ```csharp [C#] using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { IBackgroundEffectiveData effectiveBackground = pres.Slides[0].Background.GetEffective(); Console.WriteLine("Background fill type: " + effectiveBackground.FillFormat.FillType); Console.WriteLine("Any effects applied: " + !effectiveBackground.EffectFormat.IsNoEffects); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/paragraphformat/geteffective This example demonstrates getting some effective paragraph format properties. ```C# using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape; IParagraphFormatEffectiveData effectiveParagraphFormat = shape.TextFrame.Paragraphs[0].ParagraphFormat.GetEffective(); Console.WriteLine("Text alignment: " + effectiveParagraphFormat.Alignment); Console.WriteLine("Indent: " + effectiveParagraphFormat.Indent); Console.WriteLine("Bullet type: " + effectiveParagraphFormat.Bullet.Type); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathborderbox/strikethroughbottomlefttotopright Example of setting the StrikethroughBottomLeftToTopRight property. ```csharp IMathBorderBox borderBox = new MathematicalText("x+y+z").ToBorderBox(); borderBox.StrikethroughBottomLeftToTopRight = true; ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/fontfallbackrulescollection/item Demonstrates how to add and retrieve font fallback rules. ```csharp using (Presentation pres = new Presentation ()){ //Getting of empty or preinitialized rules collection from FontsManager IFontFallBackRulesCollection rulesList = pres.FontsManager.FontFallBackRulesCollection; //Adding of several rules to collection rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman")); rulesList.Add(new FontFallBackRule(0x3040, 0x309F, "MS Mincho")); //Retrieving of object of the first rule in collection IFontFallBackRule firstRule = rulesList[0]; } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/fontsmanager/fontfallbackrulescollection This example demonstrates how to get, add to, and replace the FontFallBackRulesCollection in Aspose.Slides for .NET. ```C# using (Presentation pres = new Presentation ()){ // Getting of empty or preinitialized rules collection from FontsManager IFontFallBackRulesCollection rulesList = pres.FontsManager.FontFallBackRulesCollection; // adding of rules to collection rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman")); // or // initialization of new instance of rules collection IFontFallBackRulesCollection rulesList = new FontFallBackRulesCollection(); // adding of rules to collection rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman")); // and replacing of existing collection by the new one in FontsManager pres.FontsManager.FontFallBackRulesCollection = rulesList; } ``` -------------------------------- ### Open and Save Presentation Source: https://reference.aspose.com/slides/net/aspose.slides/presentation This example shows how to open an existing presentation file (e.g., .odp) and save it in .pptx format. ```C# // Load any supported file in Presentation e.g. ppt, pptx, odp etc. using (Presentation presentation = new Presentation("Sample.odp")) { // Save the presentation file. presentation.Save("OutputPresenation.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/bulletformat/geteffective This example demonstrates getting some effective bullet format properties. ```C# using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape; IBulletFormatEffectiveData effectiveBulletFormat = shape.TextFrame.Paragraphs[0].ParagraphFormat.Bullet.GetEffective(); Console.WriteLine("Bullet type: " + effectiveBulletFormat.Type); if (effectiveBulletFormat.Type == BulletType.Numbered) { Console.WriteLine("Numbered style: " + effectiveBulletFormat.NumberedBulletStyle); Console.WriteLine("Starting number: " + effectiveBulletFormat.NumberedBulletStartWith); } } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/ilayoutslide/drawingguides This example demonstrates how to add a vertical drawing guide to a layout slide. ```csharp using (Presentation pres = new Presentation()) { var slideSize = pres.SlideSize.Size; IDrawingGuidesCollection guides = pres.LayoutSlides[0].DrawingGuides; // Adding the new vertical drawing guide to the left of the slide center guides.Add(Orientation.Vertical, slideSize.Width / 2 - 20f); pres.Save("LayoutDrawingGuides_out.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Getting the properties of a Presentation Source: https://reference.aspose.com/slides/net/aspose.slides/presentationfactory The following example shows how to getting the properties of a Presentation. ```csharp [C#] IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("pres.pptx"); IDocumentProperties props = info.ReadDocumentProperties(); Console.WriteLine(props.CreatedTime); Console.WriteLine(props.Subject); Console.WriteLine(props.Title); // .. ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathrightsubsuperscriptelement Example of creating an IMathRightSubSuperscriptElement. ```csharp IMathRightSubSuperscriptElement subsuperscript = new MathematicalText("N").SetSubSuperscriptOnTheRight("i", "j"); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathportion/mathportion Example of using MathPortion. ```C# using (Presentation pres = new Presentation()) { IAutoShape shape = pres.Slides[0].Shapes.AddMathShape(0, 0, 300, 50); IParagraph paragraph = shape.TextFrame.Paragraphs[0]; MathPortion mathPortion = new MathPortion(); paragraph.Portions.Add(mathPortion); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/textframeformat/geteffective This example demonstrates getting some of effective text frame formatting properties. ```csharp using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { IAutoShape shape = pres.Slides[0].Shapes[0] as IAutoShape; ITextFrameFormatEffectiveData effectiveTextFrameFormat = shape.TextFrame.TextFrameFormat.GetEffective(); Console.WriteLine("Anchoring type: " + effectiveTextFrameFormat.AnchoringType); Console.WriteLine("Autofit type: " + effectiveTextFrameFormat.AutofitType); Console.WriteLine("Text vertical type: " + effectiveTextFrameFormat.TextVerticalType); Console.WriteLine("Margins"); Console.WriteLine(" Left: " + effectiveTextFrameFormat.MarginLeft); Console.WriteLine(" Top: " + effectiveTextFrameFormat.MarginTop); Console.WriteLine(" Right: " + effectiveTextFrameFormat.MarginRight); Console.WriteLine(" Bottom: " + effectiveTextFrameFormat.MarginBottom); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathblock Demonstrates the basic instantiation of an IMathBlock. ```csharp IMathBlock mathBlock = new MathBlock(); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomframe/summaryzoomcollection The example demonstrates getting Summary Zoom Section element by index: ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = pres.Slides[1].Shapes[0] as ISummaryZoomFrame; ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection; } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.export/ipptxoptions/zip64mode Example of using Zip64Mode property. ```csharp using (Presentation pres = new Presentation("demo.pptx")) { pres.Save("demo-zip64.pptx", SaveFormat.Pptx, new PptxOptions() { Zip64Mode = Zip64Mode.Always }); } ``` -------------------------------- ### Example of getting Summary Zoom Section element by index Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomsectioncollection/addsummaryzoomsection Demonstrates getting a Summary Zoom Section element by index. ```csharp using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0]; ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection; ISummaryZoomSection newZoomSection = collection.AddSummaryZoomSection(pres.Sections[3]); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathlimit Demonstrates how to create an IMathLimit object. ```csharp IMathLimit limitElement = new MathLimit(new MathematicalText("lim"), new MathematicalText("𝑛→∞")); ``` -------------------------------- ### ToArray() Example Source: https://reference.aspose.com/slides/net/aspose.slides/ifontfallbackrule/toarray Example demonstrating how to use the ToArray() method to get all font names as an array. ```csharp [C#] // Create a rule contains a list of fonts. IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma, Times New Roman"); //Get all font-names as array string[] fontNames = newRule.ToArray(); ``` -------------------------------- ### Converting presentations to XPS using custom settings. Source: https://reference.aspose.com/slides/net/aspose.slides.export/xpsoptions This example shows how to convert a presentation to XPS format with custom settings, such as converting metafiles to PNG. ```C# // Instantiate a Presentation object that represents a presentation file using (Presentation pres = new Presentation("Convert_XPS_Options.pptx")) { // Instantiate the TiffOptions class XpsOptions options = new XpsOptions(); // Save MetaFiles as PNG options.SaveMetafilesAsPng = true; // Save the presentation to XPS document pres.Save("XPS_With_Options_out.xps", SaveFormat.Xps, options); } ``` -------------------------------- ### Example of removing a Summary Zoom Section Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomsectioncollection/removesummaryzoomsection The example demonstrates getting Summary Zoom Section element by index and then removing it. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0]; ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection; collection.RemoveSummaryZoomSection(pres.Sections[1]); } ``` -------------------------------- ### RotationX Property Source: https://reference.aspose.com/slides/net/aspose.slides.charts/irotation3d/rotationx Example of how to get and set the RotationX property. ```csharp public sbyte RotationX { get; set; } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathbar Example of creating an IMathBar. ```csharp [C#] IMathBar mathBar = new MathBar(new MathematicalText("x")); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/hyperlink/sound Extract the hyperlink sound in byte array ```csharp using (Presentation presentation = new Presentation("demo.pptx")) { ISlide slide = presentation.Slides[0]; // Get the first shape hyperlink IHyperlink link = presentation.Slides[0].Shapes[0].HyperlinkClick; if (link.Sound != null) { // Extract the hyperlink sound in byte array byte[] audioData = link.Sound.BinaryData; } } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.charts/chartdataworkbook/calculateformulas Example shows how to assign a formula to the cell and to calculate a value. The value of the “B4” cell is getting set to 5. ```csharp [C#] using (Presentation pres = new Presentation()) { IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.Pie, 100, 100, 300, 400); IChartDataWorkbook wb = chart.ChartData.ChartDataWorkbook; wb.GetCell(0, "B2", 2); wb.GetCell(0, "B3", 3); wb.GetCell(0, "B4").Formula = "B2+B3"; wb.CalculateFormulas(); ... } ``` -------------------------------- ### Example for Presentation(Stream) Source: https://reference.aspose.com/slides/net/aspose.slides/presentation/presentation Demonstrates how to read an existing Presentation from a file stream. ```C# [C#] FileStream fis = new FileStream("demo.pptx", FileMode.Open, FileAccess.Read); Presentation pres = new Presentation(fis); fis.Close(); ``` ```Visual Basic [Visual Basic] Dim fis As FileStream = New FileStream("demo.pptx", FileMode.Open, FileAccess.Read) Dim pres As Presentation = New Presentation(fis) fis.Close() ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/threedformat/geteffective This example demonstrates how to get effective properties for camera, light rig and shape’s top bevel. ```csharp using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { IThreeDFormatEffectiveData threeDEffectiveData = pres.Slides[0].Shapes[0].ThreeDFormat.GetEffective(); Console.WriteLine("= Effective camera properties ="); Console.WriteLine("Type: " + threeDEffectiveData.Camera.CameraType); Console.WriteLine("Field of view: " + threeDEffectiveData.Camera.FieldOfViewAngle); Console.WriteLine("Zoom: " + threeDEffectiveData.Camera.Zoom); Console.WriteLine("= Effective light rig properties ="); Console.WriteLine("Type: " + threeDEffectiveData.LightRig.LightType); Console.WriteLine("Direction: " + threeDEffectiveData.LightRig.Direction); Console.WriteLine("= Effective shape's top face relief properties ="); Console.WriteLine("Type: " + threeDEffectiveData.BevelTop.BevelType); Console.WriteLine("Width: " + threeDEffectiveData.BevelTop.Width); Console.WriteLine("Height: " + threeDEffectiveData.BevelTop.Height); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/browsedatkiosk/browsedatkiosk Example of using BrowsedAtKiosk to set the slide show type. ```csharp [C#] using (Presentation pres = new Presentation()) { pres.SlideShowSettings.SlideShowType = new BrowsedAtKiosk(); pres.Save("pres.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### IMathFunction.Name Property Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathfunction/name Demonstrates how to get the name of a math function. ```C# IMathFunction func = new MathematicalText("sin").Function("x"); IMathElement funcName = func.Name; ``` -------------------------------- ### MathBlock() Constructor Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathblock/mathblock Example of initializing a MathBlock object. ```csharp [C#] MathBlock mathBlock = new MathBlock(); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.ink/iinkbrush/inkeffect Demonstrates how to get the InkEffect property of an IInkBrush. ```C# using (var pres = new Presentation("Presentation.pptx")) { Ink ink = pres.Slides[0].Shapes[0] as Ink; IInkBrush brush = ink.Traces[0].Brush; Console.WriteLine("InkEffects = {0}", brush.InkEffect); } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathradical Example of creating a radical with a base and degree. ```csharp IMathRadical radical = new MathematicalText("x").Radical("3"); // cube root ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.excel/exceldatacell/column Demonstrates how to get the column index of an Excel data cell. ```csharp [C#] ExcelDataWorkbook wb = new ExcelDataWorkbook(testFile); IExcelDataCell cell = wb.GetCell(1, 1, 1); Console.WriteLine(cell.Column); //Output: 1 ``` -------------------------------- ### IControl.ClassId Property Source: https://reference.aspose.com/slides/net/aspose.slides/icontrol/classid Gets class id of this control. Read-only Guid. ```csharp public Guid ClassId { get; } ``` -------------------------------- ### Example Usage of Insert Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathblock/insert Example demonstrating how to use the Insert method to add a MathRadical to a MathBlock. ```csharp MathBlock mathBlock = new MathBlock(new MathematicalText("x")); MathematicalText plusElement = new MathematicalText("+"); mathBlock.Add(plusElement); mathBlock.Insert(0, new MathRadical(new MathematicalText("x"), new MathematicalText("3"))); ``` -------------------------------- ### CommentAuthor.Initials Property Example Source: https://reference.aspose.com/slides/net/aspose.slides/commentauthor/initials Demonstrates how to get or set the initials of a CommentAuthor. ```csharp public string Initials { get; set; } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.export/presentationplayer This example demonstrates how to play animation with different FPS. ```C# using (Presentation pres = new Presentation("pres.pptx")) { using (var animationsGenerator = new PresentationAnimationsGenerator(pres)) { // Play animation with 33 FPS using (var player = new PresentationPlayer(animationsGenerator, 33)) { player.FrameTick += (sender, args) => { args.GetFrame().Save(Path.Combine("33fps", $"frame_{sender.FrameIndex}.png")); }; animationsGenerator.Run(pres.Slides); } // Play animation with 45 FPS using (var player = new PresentationPlayer(animationsGenerator, 45)) { player.FrameTick += (sender, args) => { args.GetFrame().Save(Path.Combine("45fps", $"frame_{sender.FrameIndex}.png")); }; animationsGenerator.Run(pres.Slides); } } } ``` -------------------------------- ### Example: Constructor from Text and Format Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathematicaltext/mathematicaltext Demonstrates creating a MathematicalText object with text and custom formatting. ```csharp IPortionFormat format = new PortionFormat() { FontHeight = 12 }; MathematicalText mathText = new MathematicalText("x+y", format); ``` -------------------------------- ### MarginLeft Property Source: https://reference.aspose.com/slides/net/aspose.slides/cell/marginleft Example of how to get and set the MarginLeft property of a Cell object. ```csharp public double MarginLeft { get; set; } ``` -------------------------------- ### Example of getting effective fill format Source: https://reference.aspose.com/slides/net/aspose.slides/cellformat/geteffective This example demonstrates getting effective fill format for different table logic parts. Please note that cell formatting always has higher priority than row formatting, row - higher than column, column - higher that whole table. So finally CellFormatEffectiveData properties always used to draw the table. The following code is just an example of API. ```csharp [C#] using (Presentation pres = new Presentation(@"MyPresentation.pptx")) { ITable tbl = pres.Slides[0].Shapes[0] as ITable; IFillFormatEffectiveData tableFillFormatEffective = tbl.TableFormat.GetEffective().FillFormat; IFillFormatEffectiveData rowFillFormatEffective = tbl.Rows[0].RowFormat.GetEffective().FillFormat; IFillFormatEffectiveData columnFillFormatEffective = tbl.Columns[0].ColumnFormat.GetEffective().FillFormat; IFillFormatEffectiveData cellFillFormatEffective = tbl[0, 0].CellFormat.GetEffective().FillFormat; /* Output and comparison */ } ``` -------------------------------- ### Getting Summary Zoom Section element by index Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomsectioncollection/item The example demonstrates getting Summary Zoom Section element by index: ```csharp using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0]; ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection; ISummaryZoomSection zoomSection = collection[1]; } ``` -------------------------------- ### Example Usage of Count Property Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathblock/count Demonstrates how to get the count of elements in a MathBlock. ```csharp [C#] MathBlock mathBlock = new MathBlock(new MathematicalText("x")); int count = mathBlock.Count; ``` -------------------------------- ### Example of using Delimit method Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathblock/delimit Example demonstrating how to use the Delimit method to delimit math elements. ```csharp [C#] MathBlock mathBlock = new MathematicalText("x").Join("y"); IMathDelimiter delimiterElement = mathBlock.Delimit('|'); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathfraction Demonstrates how to create and use IMathFraction objects. ```csharp [C#] IMathFraction mathFraction = new MathematicalText("x").Divide("y"); IMathFraction mathFraction2 = new MathFraction(new MathematicalText("x"), new MathematicalText("y"), MathFractionTypes.Linear); ``` -------------------------------- ### GetVisualBounds Method Source: https://reference.aspose.com/slides/net/aspose.slides/shape/getvisualbounds Example of how to get the visual bounds of a shape. ```csharp public RectangleF GetVisualBounds() ``` -------------------------------- ### Example: Creating an IMathArray Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imatharray Demonstrates how to create an instance of IMathArray with an initial item. ```csharp [C#] IMathArray mathArray = new MathArray(new MathematicalText("item1")); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides/oleobjectframe/linkpathrelative Demonstrates how to get the relative path of a linked OLE object. ```csharp [C#] using (Presentation presentation = new Presentation("demo.ppt")) { IOleObjectFrame oleFrame = presentation.Slides[0].Shapes[0] as IOleObjectFrame; if (oleFrame != null) { Console.WriteLine("The relative path: " + oleFrame.LinkPathRelative); } } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathmatrix/mathmatrix Example usage of the MathMatrix constructor. ```csharp IMathMatrix matrix = new MathMatrix(2, 3); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/ishape/getbaseplaceholder get all (master/layout/slide) animated effects of the placeholder shape ```C# [C#] // get all (master/layout/slide) animated effects of the placeholder shape using (Presentation pres = new Presentation("sample.pptx")) { ISlide slide = pres.Slides[0]; IShape shape = slide.Shapes[0]; IEffect[] shapeEffects = slide.Timeline.MainSequence.GetEffectsByShape(shape); IShape layoutShape = shape.GetBasePlaceholder(); IEffect[] layoutShapeEffects = slide.LayoutSlide.Timeline.MainSequence.GetEffectsByShape(layoutShape); IShape masterShape = layoutShape.GetBasePlaceholder(); IEffect[] masterShapeEffects = slide.LayoutSlide.MasterSlide.Timeline.MainSequence.GetEffectsByShape(masterShape); } ``` -------------------------------- ### Example of Clearing Summary Zoom Sections Source: https://reference.aspose.com/slides/net/aspose.slides/summaryzoomsectioncollection/clear This C# example demonstrates how to get a Summary Zoom Section element by index and then clear the collection. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0]; ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection; collection.Clear(); } ``` -------------------------------- ### Example Usage of InsertColumnAfter Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathmatrix/insertcolumnafter An example demonstrating how to use the InsertColumnAfter method. ```csharp [C#] IMathMatrix matrix = new MathMatrix(2, 3); matrix.InsertColumnAfter(0); ``` -------------------------------- ### Example of getting Summary Zoom Section element by index Source: https://reference.aspose.com/slides/net/aspose.slides/isummaryzoomsectioncollection/getsummarysection This C# example demonstrates how to retrieve a Summary Zoom Section element using the GetSummarySection method. ```csharp [C#] using (Presentation pres = new Presentation("pres.pptx")) { ISummaryZoomFrame zoomFrame = (ISummaryZoomFrame) pres.Slides[1].Shapes[0]; ISummaryZoomSectionCollection collection = zoomFrame.SummaryZoomCollection; ISummaryZoomSection selectedObject = collection.GetSummarySection(pres.Sections[2]); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathphantom/mathphantom Example of using MathPhantom with MathFraction. ```csharp [C#] IMathElement fraction = new MathFraction( new MathematicalText("1"), new MathematicalText("2")); ``` -------------------------------- ### ToArray(int, int) Example Source: https://reference.aspose.com/slides/net/aspose.slides/ifontfallbackrule/toarray Example demonstrating how to use the ToArray(int, int) method to get a specified number of font names from a range as an array. ```csharp [C#] // Create a rule contains a list of fonts. IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma, Times New Roman"); //Get a last two font-names as array string[] fontNames = newRule.ToArray(2,2); ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/masterhandoutslide/drawingguides Adding a new horizontal drawing guide above the slide center. ```C# using (Presentation pres = new Presentation()){ var notesSize = pres.NotesSize.Size; IDrawingGuidesCollection guides = pres.MasterHandoutSlideManager.SetDefaultMasterHandoutSlide().DrawingGuides; // Adding the new horizontal drawing guide above the slide center guides.Add(Orientation.Horizontal, notesSize.Height / 2 - 50f); pres.Save("MasterHandoutDrawingGuides_out.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.export/ihtml5options This example demonstrates how to set animation options for shapes and transitions when exporting to HTML5. ```C# using (Presentation pres = new Presentation("demo.pptx")) { pres.Save("demo-animate-shapes-and-transitions.html", SaveFormat.Html5, new Html5Options() { AnimateShapes = true, AnimateTransitions = true }); } ``` -------------------------------- ### SetUpperLimit(IMathElement) Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathelementbase/setupperlimit Takes upper limit ```csharp public IMathLimit SetUpperLimit(IMathElement limit) ``` -------------------------------- ### FillType Property Example Source: https://reference.aspose.com/slides/net/aspose.slides/fillformat/filltype Demonstrates how to get or set the FillType property of a FillFormat object. ```csharp public FillType FillType { get; set; } ``` -------------------------------- ### Manager Property Source: https://reference.aspose.com/slides/net/aspose.slides/documentproperties/manager Example of how to get and set the Manager property. ```csharp public string Manager { get; set; } ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathparagraph/item Demonstrates how to add MathBlocks to a MathParagraph and access them by index. ```C# IAutoShape shape = slide.Shapes.AddMathShape(x, y, width, height); IMathParagraph mathParagraph = (shape.TextFrame.Paragraphs[0].Portions[0] as MathPortion).MathParagraph; mathParagraph.Add(new MathBlock(new MathematicalText("block1"))); mathParagraph.Add(new MathBlock(new MathematicalText("block2"))); IMathBlock block = mathParagraph[1]; ``` -------------------------------- ### Control.ClassId Property Source: https://reference.aspose.com/slides/net/aspose.slides/control/classid Gets class id of this control. Read-only Guid. ```csharp public Guid ClassId { get; set; } ``` -------------------------------- ### Example for ToTiff(Presentation, string, ITiffOptions, bool) Source: https://reference.aspose.com/slides/net/aspose.slides.lowcode/convert/totiff Demonstrates how to convert a presentation to TIFF format with custom options and control multi-page output. ```csharp ITiffOptions options = new TiffOptions() { CompressionType = TiffCompressionTypes.CCITT3, SlidesLayoutOptions = new NotesCommentsLayoutingOptions() { NotesPosition = NotesPositions.BottomTruncated } }; using (var pres = new Presentation("pres.pptx")) Convert.ToTiff(pres, "pres.tiff", options, false); ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathfraction/fractiontype Example of setting the FractionType property. ```csharp [C#] IMathFraction mathFraction = new MathematicalText("x").Divide("y"); mathFraction.FractionType = MathFractionTypes.Linear; ``` -------------------------------- ### Example Usage Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/imathmatrix/columncount Demonstrates how to get the column count of a matrix. ```csharp [C#] IMathMatrix matrix = new MathMatrix(2, 3); int columnCount = matrix.ColumnCount; ``` -------------------------------- ### Category Property Source: https://reference.aspose.com/slides/net/aspose.slides/documentproperties/category Example of how to get and set the Category property of a presentation. ```csharp public string Category { get; set; } ``` -------------------------------- ### SetLicense(Stream) Example Source: https://reference.aspose.com/slides/net/aspose.slides/ilicense/setlicense Example of how to set a license using a stream. ```csharp License license = new License(); license.SetLicense(myStream); ``` ```vb Dim license as License = new License license.SetLicense(myStream) ``` -------------------------------- ### Comment.Text Property Source: https://reference.aspose.com/slides/net/aspose.slides/comment/text Example of how to get or set the plain text of a slide comment. ```csharp public string Text { get; set; } ``` -------------------------------- ### Height Property Source: https://reference.aspose.com/slides/net/aspose.slides/bulletformat/height Example of how to get and set the bullet height property. ```csharp public float Height { get; set; } ``` -------------------------------- ### Examples Source: https://reference.aspose.com/slides/net/aspose.slides/ilicense In this example, an attempt will be made to find a license file named MyLicense.lic in the folder that contains the component, in the folder that contains the calling assembly, in the folder of the entry assembly and then in the embedded resources of the calling assembly. ```csharp License license = new License(); license.SetLicense("MyLicense.lic"); ``` ```vb Dim license As license = New license License.SetLicense("MyLicense.lic") ``` -------------------------------- ### Example Usage Source: https://reference.aspose.com/slides/net/aspose.slides.excel/exceldatacell/row Demonstrates how to get the row index of an Excel data cell. ```csharp [C#] ExcelDataWorkbook wb = new ExcelDataWorkbook(testFile); IExcelDataCell cell = wb.GetCell(1, 1, 1); Console.WriteLine(cell.Row); //Output: 1 ``` -------------------------------- ### Example Usage Source: https://reference.aspose.com/slides/net/aspose.slides/license/resetlicense Demonstrates how to reset the license using the License class. ```csharp License license = new License(); license.ResetLicense(); ``` ```vb Dim license as License = new License license.ResetLicense() ``` -------------------------------- ### IDrawingGuide interface Source: https://reference.aspose.com/slides/net/aspose.slides/idrawingguide Represents an adjustable drawing guide. ```csharp public interface IDrawingGuide ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides/imasternotesslide/drawingguides Adds a new horizontal drawing guide below the slide center to the master notes slide. ```C# using (Presentation pres = new Presentation()) { var notesSize = pres.NotesSize.Size; IDrawingGuidesCollection guides = pres.MasterNotesSlideManager.SetDefaultMasterNotesSlide().DrawingGuides; // Adding the new horizontal drawing guide below the slide center guides.Add(Orientation.Horizontal, notesSize.Height / 2 + 50f); pres.Save("MasterNotesDrawingGuides_out.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### DrawingGuides Source: https://reference.aspose.com/slides/net/aspose.slides/imasterhandoutslide/drawingguides Example of how to add a horizontal drawing guide to the master handout slide. ```csharp using (Presentation pres = new Presentation()) { var notesSize = pres.NotesSize.Size; IDrawingGuidesCollection guides = pres.MasterHandoutSlideManager.SetDefaultMasterHandoutSlide().DrawingGuides; // Adding the new horizontal drawing guide above the slide center guides.Add(Orientation.Horizontal, notesSize.Height / 2 - 50f); pres.Save("MasterHandoutDrawingGuides_out.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### Example Usage of MathBorderBox Constructor with Options Source: https://reference.aspose.com/slides/net/aspose.slides.mathtext/mathborderbox/mathborderbox Example demonstrating the creation of a MathBorderBox with specific border hiding and strikethrough settings. ```csharp [C#] MathBorderBox borderBox = new MathBorderBox(new MathematicalText("x"), true, true, true, false, true, true, true, true) ``` -------------------------------- ### Example Source: https://reference.aspose.com/slides/net/aspose.slides/videoframe/trimfromstart Sets the trimming start time to 1 second and trimming end time to 2 seconds. ```csharp using (Presentation pres = new Presentation()) { ISlide slide = pres.Slides[0]; IVideo video = pres.Videos.AddVideo(File.ReadAllBytes("video.mp4")); var videoFrame = slide.Shapes.AddVideoFrame(0, 0, 100, 100, video); //set triming start time 1sec videoFrame.TrimFromStart = 1000f; //set triming end time 2sec videoFrame.TrimFromEnd = 2000f; } ``` -------------------------------- ### Add new drawing guides Source: https://reference.aspose.com/slides/net/aspose.slides/commonslideviewproperties/drawingguides Shows how to add new drawing guides to a PowerPoint presentation. ```csharp [C#] using (Presentation pres = new Presentation()) { var slideSize = pres.SlideSize.Size; IDrawingGuidesCollection guides = pres.ViewProperties.SlideViewProperties.DrawingGuides; // Adding the new vertical drawing guide to the right of the slide center guides.Add(Orientation.Vertical, slideSize.Width / 2 + 12.5f); // Adding the new horizontal drawing guide below the slide center guides.Add(Orientation.Horizontal, slideSize.Height / 2 + 12.5f); pres.Save("DrawingGuides_out.pptx", SaveFormat.Pptx); } ``` -------------------------------- ### AudioFrame.TrimFromStart Property Source: https://reference.aspose.com/slides/net/aspose.slides/audioframe/trimfromstart This example demonstrates how to set the start trimming time for an audio frame. ```C# using (Presentation pres = new Presentation()) { IAudio audio = pres.Audios.AddAudio(File.ReadAllBytes("sampleaudio.mp3")); IAudioFrame audioFrame = pres.Slides[0].Shapes.AddAudioFrameEmbedded(50, 50, 100, 100, audio); // Set the start trimming time 1.5 seconds audioFrame.TrimFromStart = 1500f; } ```