### Instantiating the Guides Class Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Diagram.Guides.html Demonstrates the different constructors available for the Guides class, including parameterless, copy, and serialization-based initialization. ```csharp public Guides(); public Guides(Guides src); protected Guides(SerializationInfo info, StreamingContext context); ``` -------------------------------- ### Get Effect Subtype - C# and VB.NET Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Presentation.IEffect.html This example demonstrates how to retrieve the subtype of an animation effect applied to a shape on a presentation slide. It builds upon the basic presentation creation and animation setup. ```C# // Create a new presentation. IPresentation ppDoc = Presentation.Create(); // Add a slide to the presentation. ISlide slide = ppDoc.Slides.Add(SlideLayoutType.Blank); // Add shape on the slide IShape shape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150); // Add animation effect on the slide with shape IEffect effect = ppDoc.Slides[0].Timeline.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick); // Get the subtype from the effect EffectSubtype effectSubType = effect.Subtype; // Save the presentation file ppDoc.Save("Sample.pptx"); // Close the presentation file ppDoc.Close(); ``` ```VB.NET 'Create a new presentation Dim ppDoc As IPresentation = Presentation.Create() 'Add a slide to the presentation. Dim slide As ISlide = ppDoc.Slides.Add(SlideLayoutType.Blank) 'Add shape on the slide Dim shape As IShape = slide.Shapes.AddShape(AutoShapeType.Diamond, 150, 150, 250, 150) 'Add animation effect on the slide with shape Dim effect As IEffect = ppDoc.Slides(0).TimeLine.MainSequence.AddEffect(shape, EffectType.Bounce, EffectSubtype.None, EffectTriggerType.OnClick) 'Get the subtype from the effect Dim effectSubType As EffectSubtype = effect.Subtype 'Save the presentation file ppDoc.Save("Sample.pptx") 'Close the presentation file ppDoc.Close() ``` -------------------------------- ### Get or Set Task Start Date (DateTime) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.ProjIO.Task.html Gets or sets the scheduled start date for the task. This property is of type DateTime. ```csharp public DateTime Start { get; set; } ``` -------------------------------- ### Initialize ViewSetup Class Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.DocIO.DLS.ViewSetup.html Demonstrates how to instantiate the ViewSetup class by providing an IWordDocument instance. ```csharp public ViewSetup(IWordDocument doc) ``` -------------------------------- ### Initialize ToolStripComboBoxExStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.ToolStripComboBoxExStyleInfoStore.html Demonstrates the class definition and constructor signatures for initializing the style information store. ```csharp public class ToolStripComboBoxExStyleInfoStore : VisualStyleInfoStore, IDisposable, IStyleInfo, ISerializable, ICloneable, IXmlSerializable { public ToolStripComboBoxExStyleInfoStore() { } protected ToolStripComboBoxExStyleInfoStore(SerializationInfo info, StreamingContext context) { } } ``` -------------------------------- ### Get Disabled UpDownButton Background Start Color (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Office2007Colors.html Gets the background start color for UpDownButtons when they are in a disabled state. This read-only property provides the start color for disabled button backgrounds. ```C# public Color UpDownBackgroundDisabledStartColor { get; } ``` -------------------------------- ### Get Normal UpDownButton Background Start Color (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Office2007Colors.html Gets the background start color for UpDownButtons when they are in a normal state. This read-only property defines the start color of the background gradient in the normal state. ```C# public Color UpDownBackgroundNormalStartColor { get; } ``` -------------------------------- ### Initialize PageSetup Class Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.DLS.PageSetup.html Demonstrates the syntax for the PageSetup class definition and its constructor, which requires an IDocument instance. ```csharp public class PageSetup : XDLSSerializableBase, IEntityBase, IXDLSSerializable { public PageSetup(IDocument doc) { // Constructor implementation } } ``` -------------------------------- ### Create and Configure Presentation Chart Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.OfficeChart.IOfficeChartCategoryAxis.html This example shows how to initialize a presentation, add a slide, insert a chart, populate it with data, and configure series and axis properties. It concludes by saving the presentation to a file. ```csharp IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); IOfficeChartSerie serieJan = chart.Series.Add("Jan"); serieJan.Values = chart.ChartData[2, 2, 4, 2]; IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); serieFeb.Values = chart.ChartData[2, 3, 4, 3]; IOfficeChartSerie serieMarch = chart.Series.Add("March"); serieMarch.Values = chart.ChartData[2, 4, 4, 4]; IOfficeChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; categoryAxis.AutoTickLabelSpacing = false; presentation.Save("Output.pptx"); presentation.Close(); ``` ```vbnet Dim presentation__1 As IPresentation = Presentation.Create() Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") serieJan.Values = chart.ChartData(2, 2, 4, 2) Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") serieFeb.Values = chart.ChartData(2, 3, 4, 3) Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") serieMarch.Values = chart.ChartData(2, 4, 4, 4) Dim categoryAxis As IOfficeChartCategoryAxis = chart.PrimaryCategoryAxis categoryAxis.AutoTickLabelSpacing = False presentation__1.Save("Output.pptx") presentation__1.Close() ``` -------------------------------- ### Get Row Height with Examples (C# and VB.NET) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridViewLayout.html Demonstrates how to get the height of a row using the GetRowHeight method. Includes examples in both C# and VB.NET. ```csharp GridControl gridControl1; int rowIndex = this.gridControl1.CurrentCell.RowIndex; int rowHeight = this.gridControl1.ViewLayout.GetRowHeight(rowIndex); Console.WriteLine("RowHeight:" + rowHeight); ``` ```vb.net Dim gridControl1 As GridControl Dim rowIndex As Integer = Me.gridControl1.CurrentCell.RowIndex Dim rowHeight As Integer = Me.gridControl1.ViewLayout.GetRowHeight(rowIndex) Console.WriteLine("RowHeight:" & rowHeight) ``` -------------------------------- ### Get or Set Task Start Date (String) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.ProjIO.Task.html Gets or sets the scheduled start date of the task as a string. This is useful for display or input handling. ```csharp public string StartString { get; set; } ``` -------------------------------- ### Initialize and Apply JumpList Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.JumpList.html Demonstrates how to instantiate a JumpList, initialize it, and apply the configuration to the application. ```csharp JumpList jumpList = new JumpList(); jumpList.BeginInit(); // Configure items here jumpList.EndInit(); jumpList.Apply(); ``` -------------------------------- ### Initialize BookmarkStart in C# Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.DocIO.DLS.BookmarkStart.html Demonstrates how to initialize a new instance of the BookmarkStart class using the constructor. This requires an IWordDocument object and a string representing the bookmark name. ```csharp public BookmarkStart(IWordDocument doc, string name) ``` -------------------------------- ### Get Pressed UpDownButton Background Top Start Color (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Office2007Colors.html Gets the background top start color for UpDownButtons when they are in a pressed state. This read-only property defines the color for the top start of the background when the button is pressed. ```C# public Color UpDownBackgroundPressedTopStartColor { get; } ``` -------------------------------- ### Get Pressed UpDownButton Background Bottom Start Color (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Office2007Colors.html Gets the background bottom start color for UpDownButtons when they are in a pressed state. This read-only property defines the color for the bottom start of the background when the button is pressed. ```C# public Color UpDownBackgroundPressedBottomStartColor { get; } ``` -------------------------------- ### BeginInit Method Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridDataBoundGrid.html Implements System.ComponentModel.ISupportInitialize.BeginInit of the System.ComponentModel.ISupportInitialize interface. ```APIDOC ## BeginInit() Method ### Description Implements System.ComponentModel.ISupportInitialize.BeginInit of the System.ComponentModel.ISupportInitialize interface. ### Method public void ### Declaration ```csharp public void BeginInit() ``` ``` -------------------------------- ### Get Hot UpDownButton Background Top Start Color (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Office2007Colors.html Gets the background top start color for UpDownButtons when they are in a hot (hovered) state. This read-only property specifies the color for the top start of the background in the hot state. ```C# public Color UpDownBackgroundHotTopStartColor { get; } ``` -------------------------------- ### Initialize StatusBarAdvStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.StatusBarAdvStyleInfoStore.html Demonstrates the instantiation of the StatusBarAdvStyleInfoStore class using its default constructor. ```csharp StatusBarAdvStyleInfoStore styleStore = new StatusBarAdvStyleInfoStore(); ``` -------------------------------- ### Get Hot UpDownButton Background Bottom Start Color (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Office2007Colors.html Gets the background bottom start color for UpDownButtons when they are in a hot (hovered) state. This read-only property specifies the color for the bottom start of the background in the hot state. ```C# public Color UpDownBackgroundHotBottomStartColor { get; } ``` -------------------------------- ### Initialize BookmarksNavigator Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.DLS.BookmarksNavigator.html Demonstrates how to instantiate the BookmarksNavigator class by passing an IDocument instance. ```csharp BookmarksNavigator navigator = new BookmarksNavigator(document); ``` -------------------------------- ### Get UpDownButton Arrow Start Color (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Office2007Colors.html Gets the color of the start of the arrow for UpDownButtons. This read-only property allows retrieval of the color at the arrow's beginning. ```C# public Color UpDownArrowStartColor { get; } ``` -------------------------------- ### Initialize GradientPanelStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.GradientPanelStyleInfoStore.html Demonstrates the instantiation of the GradientPanelStyleInfoStore class using its default constructor. ```C# GradientPanelStyleInfoStore styleStore = new GradientPanelStyleInfoStore(); ``` -------------------------------- ### Get or Set Task Start Variance (Integer) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.ProjIO.Task.html Gets or sets the variance of the task's start date from its baseline, measured in minutes x 1000. Stored as an integer. ```csharp public int StartVariance { get; set; } ``` -------------------------------- ### Create and Configure a Chart using IOfficeChart Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.OfficeChart.IOfficeChart.html Demonstrates how to create a presentation, add a chart to a slide, set its data, configure series, axes, and scaling properties, and finally save the presentation. This example utilizes the IOfficeChart interface and related classes. ```C# IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); chart.ChartTitle = "Sales Analysis"; chart.ChartType = OfficeChartType.Column_Clustered; chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); IOfficeChartSerie serieJan = chart.Series.Add("Jan"); serieJan.Values = chart.ChartData[2, 2, 4, 2]; IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); serieFeb.Values = chart.ChartData[2, 3, 4, 3]; IOfficeChartSerie serieMarch = chart.Series.Add("March"); serieMarch.Values = chart.ChartData[2, 4, 4, 4]; chart.PrimaryCategoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; chart.RightAngleAxes = true; chart.AutoScaling = true; presentation.Save("sample.pptx"); presentation.Close(); ``` ```VB.NET 'Create a presentation instance Dim presentation As IPresentation = Presentation.Create() 'Add a blank slide to the presentation Dim slide As ISlide = presentation.Slides.Add(SlideLayoutType.Blank) 'Add chart to the slide with position and size Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) 'Set chart data - Row1 chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") 'Set chart data - Row2 chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") 'Set chart data - Row3 chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") 'Set chart data - Row4 chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") 'Create a new chart series with the name Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") 'Set the data range of chart serie � start row, start column, end row, end column serieJan.Values = chart.ChartData(2, 2, 4, 2) 'Create a new chart series with the name Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") 'Set the data range of chart serie � start row, start column, end row, end column serieFeb.Values = chart.ChartData(2, 3, 4, 3) 'Create a new chart series with the name Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") 'Set the data range of chart series � start row, start column, end row, end column serieMarch.Values = chart.ChartData(2, 4, 4, 4) 'Set the right angle axes chart.RightAngleAxes = True 'Set the auto scaling of chart chart.AutoScaling = True 'Save the presentation presentation.Save("Output.pptx") 'Close the presentation presentation.Close() ``` -------------------------------- ### Get or Set DataWindow Start Position Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Edit.Implementation.IO.DataWindow.html Gets or sets the index of the first byte of the DataWindow's data within its Source. This property defines the starting point of the data segment. ```csharp public long Start { get; set; } ``` -------------------------------- ### Office2016ToolStripRendererUtils.Initialize Method Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.Office2016ToolStripRenderer.Office2016ToolStripRendererUtils.html Initializes the ToolStrip with the necessary configurations. ```APIDOC ## Initialize Method ### Description Initializes the specified ToolStrip with the necessary configurations for the Office 2016 theme. ### Method `public void Initialize(ToolStrip toolstrip)` ### Endpoint N/A (Method call) ### Parameters #### Path Parameters - None #### Query Parameters - None #### Request Body - None ### Parameters #### Path Parameters - **toolstrip** (System.Windows.Forms.ToolStrip) - Required - The ToolStrip control to initialize. ### Request Example ```csharp Office2016ToolStripRendererUtils utils = new Office2016ToolStripRendererUtils(myRenderer); utils.Initialize(myToolStrip); ``` ### Response #### Success Response (200) - None (Void method) #### Response Example ```json { "message": "ToolStrip initialized successfully" } ``` ``` -------------------------------- ### Initialize ToolStripComboBoxEx Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.ToolStripComboBoxEx.html Demonstrates the instantiation of the ToolStripComboBoxEx class. ```csharp using Syncfusion.Windows.Forms.Tools; ToolStripComboBoxEx comboBoxEx = new ToolStripComboBoxEx(); ``` -------------------------------- ### Get Segment Start Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.Implementation.IdReserver.html Evaluates the start index of the segment containing the specified ID. ```csharp int start = Syncfusion.XlsIO.Implementation.IdReserver.GetSegmentStart(1050); ``` -------------------------------- ### Get Row Height with Size Kind and Examples (C# and VB.NET) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridViewLayout.html Demonstrates how to get the height of a row considering the top-row index and sizeKind for pixel scrolling. Includes examples in both C# and VB.NET. ```csharp GridControl gridControl1; int rowIndex = this.gridControl1.CurrentCell.RowIndex; int rowHeight = this.gridControl1.ViewLayout.GetRowHeight(rowIndex,GridCellSizeKind.VisibleSize); Console.WriteLine("RowHeight:" + rowHeight); ``` ```vb.net Dim gridControl1 As GridControl Dim rowIndex As Integer = Me.gridControl1.CurrentCell.RowIndex Dim rowHeight As Integer = Me.gridControl1.ViewLayout.GetRowHeight(rowIndex,GridCellSizeKind.VisibleSize) Console.WriteLine("RowHeight:" & rowHeight) ``` -------------------------------- ### Initialize ToolTipAdvStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.ToolTipAdvStyleInfoStore.html Demonstrates the declaration and initialization of the ToolTipAdvStyleInfoStore class, including the default constructor and the protected serialization constructor. ```csharp public class ToolTipAdvStyleInfoStore : VisualStyleInfoStore, IDisposable, IStyleInfo, ISerializable, ICloneable, IXmlSerializable { public ToolTipAdvStyleInfoStore() : base() { } protected ToolTipAdvStyleInfoStore(SerializationInfo info, StreamingContext context) : base(info, context) { } } ``` -------------------------------- ### CellRenderers Property and Example Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridControlBase.html Gets the collection of GridCellRendererBase objects for the current grid view. Cell renderers are created on demand and are associated with GridCellModelBase objects. The example shows how to get a renderer for a specific cell type. ```csharp public GridCellRendererCollection CellRenderers { get; } ``` ```csharp GridStyleInfo style = Model[rowIndex, colIndex]; GridCellRendererBase renderer = CellRenderers[style.CellType]; ``` -------------------------------- ### Create and Configure a Presentation Chart Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.OfficeChart.IOfficeChartCategoryAxis.html This example shows how to initialize a presentation, add a slide, and insert a chart. It includes steps for populating chart data, defining data series, and formatting the primary category axis. ```csharp IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); chart.ChartData.SetValue(2, 1, "9/21/2015"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); chart.ChartData.SetValue(3, 1, "9/24/2015"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); chart.ChartData.SetValue(4, 1, "9/28/2015"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); IOfficeChartSerie serieJan = chart.Series.Add("Jan"); serieJan.Values = chart.ChartData[2, 2, 4, 2]; IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); serieFeb.Values = chart.ChartData[2, 3, 4, 3]; IOfficeChartSerie serieMarch = chart.Series.Add("March"); serieMarch.Values = chart.ChartData[2, 4, 4, 4]; IOfficeChartCategoryAxis categoryAxis = chart.PrimaryCategoryAxis; categoryAxis.CategoryLabels = chart.ChartData[2, 1, 4, 1]; categoryAxis.NumberFormat = "m/d/yyyy"; presentation.Save("Output.pptx"); presentation.Close(); ``` ```vbnet Dim presentation__1 As IPresentation = Presentation.Create() Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") chart.ChartData.SetValue(2, 1, "9/21/2015") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") chart.ChartData.SetValue(3, 1, "9/24/2015") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") chart.ChartData.SetValue(4, 1, "9/28/2015") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") serieJan.Values = chart.ChartData(2, 2, 4, 2) Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") serieFeb.Values = chart.ChartData(2, 3, 4, 3) Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") serieMarch.Values = chart.ChartData(2, 4, 4, 4) Dim categoryAxis As IOfficeChartCategoryAxis = chart.PrimaryCategoryAxis categoryAxis.CategoryLabels = chart.ChartData(2, 1, 4, 1) categoryAxis.NumberFormat = "m/d/yyyy" presentation__1.Save("Output.pptx") presentation__1.Close() ``` -------------------------------- ### GridFormulaParsingEventArgs Example Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Grid.GridFormulaParsingEventArgs.html Example demonstrating how to use the GridFormulaParsing event to treat text starting with '+' or '-' as formulas. ```APIDOC ## Example Usage Here is a code snippet that shows how to tell a grid to also treat any text in a formula cell that begins with a minus(-) or a plus(+) as formulas. The default behavior is to treat only text beginning with equal(=) as formulas. ```csharp //subscribe to the event before any formulas are loaded into the grid... this.engine = ((GridFormulaCellModel)gridControl1.CellModels["FormulaCell"]).Engine; this.engine.FormulaParsing += new GridFormulaParsingEventHandler(engine_FormulaParsing); //Here is the handler code that adds an = if necessary so any string beginning with +, - or = is treated as a formula. void engine_FormulaParsing(object sender, GridFormulaParsingEventArgs e) { //allow cells starting with + and - to be treated as formula cells. if (e.Text.StartsWith("-")) e.Text = "=" + e.Text; else if (e.Text.StartsWith("+")) e.Text = "=" + e.Text.Substring(1); } ``` ``` -------------------------------- ### Initialize CalculatorToolTipStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.CalculatorToolTipStyleInfoStore.html Demonstrates the constructors for the CalculatorToolTipStyleInfoStore class, including the default constructor and the serialization constructor. ```csharp public CalculatorToolTipStyleInfoStore() protected CalculatorToolTipStyleInfoStore(SerializationInfo info, StreamingContext context) ``` -------------------------------- ### Get Start Series Type Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.Implementation.Charts.ChartFormatImpl.html Retrieves the starting series type based on the provided ExcelChartType. This is a static utility method. ```csharp public static string GetStartSerieType(ExcelChartType type) ``` -------------------------------- ### Create and Configure Presentation Charts with Trendlines Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.OfficeChart.IOfficeChartTrendLine.html This example shows how to instantiate a presentation, add a slide, insert a chart, populate it with data, and add a polynomial trendline to a chart series. It covers the full lifecycle from creation to saving the output file. ```csharp IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); IPresentationChart chart = slide.Charts.AddChart(100, 10, 700, 500); chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); chart.ChartData.SetValue(2, 1, "2010"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); chart.ChartData.SetValue(3, 1, "2011"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); chart.ChartData.SetValue(4, 1, "2012"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); IOfficeChartSerie serieJan = chart.Series.Add("Jan"); serieJan.Values = chart.ChartData[2, 2, 4, 2]; serieJan.TrendLines.Add(); IOfficeChartTrendLine trendline = serieJan.TrendLines[0]; trendline.Type = OfficeTrendLineType.Polynomial; trendline.Intercept = 0.8; trendline.Name = "Trendline"; trendline.Order = 3; trendline.ClearFormats(); presentation.Save("Output.pptx"); presentation.Close(); ``` ```vbnet Dim presentation__1 As IPresentation = Presentation.Create() Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 700, 500) chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") chart.ChartData.SetValue(2, 1, "2010") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") chart.ChartData.SetValue(3, 1, "2011") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") chart.ChartData.SetValue(4, 1, "2012") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") serieJan.Values = chart.ChartData(2, 2, 4, 2) serieJan.TrendLines.Add() Dim trendline As IOfficeChartTrendLine = serieJan.TrendLines(0) trendline.Type = OfficeTrendLineType.Polynomial trendline.Intercept = 0.8 trendline.Name = "Trendline" trendline.Order = 3 trendline.ClearFormats() presentation__1.Save("Output.pptx") presentation__1.Close() ``` -------------------------------- ### Set Example Text Property (C#) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Edit.Dialogs.frmSimpleAdd.html Gets or sets the example text associated with the label control in the dialog. This property is useful for providing hints or usage examples to the user. ```csharp public string Example { get; set; } ``` -------------------------------- ### Initialize PageSetupDialog Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Diagram.PageSetupDialog.html Demonstrates how to instantiate the PageSetupDialog class by passing a reference to the diagram View. ```csharp public PageSetupDialog(View view) ``` -------------------------------- ### Get PDF Template Width - C# and VB.NET Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Pdf.Graphics.PdfTemplate.html This example demonstrates how to retrieve the width of a PDF template using the 'Width' property. It includes the setup for creating a PDF document, page, font, and template, then accesses and prints the template's width before drawing content and saving the document. This is shown for both C# and VB.NET. ```C# //Create a new PDF document. PdfDocument doc = new PdfDocument(); //Add a page to the document. PdfPage page = doc.Pages.Add(); //Create new PDF standard font. PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); //Create new PdfTemplate object. PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); //Get the template graphics. PdfGraphics graphics = template.Graphics; //Get the template width. float width = template.Width; Console.Write("Template width: " + width); //Draw the text to the template graphics. graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); //Draw a rectangle on the template graphics graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); //Draw the template to PDF page. template.Draw(page, PointF.Empty); //Save the document. doc.Save("Output.pdf"); //Close the document. doc.Close(true); ``` ```VB.NET 'Create a new PDF document. Dim doc As New PdfDocument() 'Add a page to the document. Dim page As PdfPage = doc.Pages.Add() 'Create new PDF standard font. Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) 'Create new PdfTemplate object. Dim template As New PdfTemplate(New SizeF(200, 100)) 'Get the template graphics. Dim graphics As PdfGraphics = template.Graphics 'Get the template width. Dim width As Single = template.Width Console.Write("Template width: " + width) 'Draw the text to the template graphics. graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) 'Draw a rectangle on the template graphics graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) 'Draw the template to PDF page. template.Draw(page, PointF.Empty) 'Save the document. doc.Save("Output.pdf") 'Close the document. doc.Close(True) ``` -------------------------------- ### Initialize GroupViewItemStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.GroupViewItemStyleInfoStore.html Demonstrates how to instantiate the GroupViewItemStyleInfoStore class using its default constructor. ```csharp GroupViewItemStyleInfoStore styleStore = new GroupViewItemStyleInfoStore(); ``` -------------------------------- ### Set Outer Frame Gradient Start Color for LinearGauge Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Gauge.LinearGaugeVisualStyle.html Gets or sets the start color for drawing the OuterFrame of the LinearGauge. This property defines the start color for outer frame gradients. ```csharp public Color OuterFrameGradientStartColor { get; set; } ``` -------------------------------- ### Initialize MacroCmd Class Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Diagram.MacroCmd.html Demonstrates how to instantiate the MacroCmd class with a description string. ```csharp MacroCmd macro = new MacroCmd("My Macro Command"); ``` -------------------------------- ### Set Inner Frame Gradient Start Color for LinearGauge Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Gauge.LinearGaugeVisualStyle.html Gets or sets the start color for drawing the InnerFrame of the LinearGauge. This property defines the starting color for inner frame gradients. ```csharp public Color InnerFrameGradientStartColor { get; set; } ``` -------------------------------- ### Initialize LauncherStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.LauncherStyleInfoStore.html Demonstrates the constructors available for the LauncherStyleInfoStore class, including the default parameterless constructor and the serialization-aware constructor. ```csharp public LauncherStyleInfoStore(); protected LauncherStyleInfoStore(SerializationInfo info, StreamingContext context); ``` -------------------------------- ### Initialize FreezePaneLineStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.Styles.FreezePaneLineStyleInfoStore.html Demonstrates how to instantiate the FreezePaneLineStyleInfoStore class using its default constructor. ```csharp FreezePaneLineStyleInfoStore styleStore = new FreezePaneLineStyleInfoStore(); ``` -------------------------------- ### Page Setup Configuration Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.XlsIO.Interfaces.IPageSetupBase.html This example demonstrates how to configure various page setup properties including headers, footers, and their associated images. ```APIDOC ## Page Setup Configuration ### Description This section provides an example of how to configure various page setup properties for an Excel worksheet, including setting text and images for headers and footers, and applying general text to a range. ### Method Illustrative C# code snippet using Syncfusion Excel library. ### Endpoint N/A (This is a library usage example, not a web API endpoint) ### Parameters N/A ### Request Example ```csharp using (ExcelEngine excelEngine = new ExcelEngine()) { //Create a worksheet. IApplication application = excelEngine.Excel; application.DefaultVersion = ExcelVersion.Excel2013; IWorkbook workbook = application.Workbooks.Create(1); IWorksheet sheet = workbook.Worksheets[0]; sheet.Range["A1:T100"].Text = "PagePrint"; //Sets the left part of the header sheet.PageSetup.LeftHeader = "Left Header &G"; sheet.PageSetup.LeftHeaderImage = System.Drawing.Image.FromFile("sample4.jpg"); sheet.PageSetup.CenterFooter = "Center Footer &G"; sheet.PageSetup.CenterFooterImage = System.Drawing.Image.FromFile("sample1.jpg"); sheet.PageSetup.CenterHeader = "Center Header &G"; sheet.PageSetup.CenterHeaderImage = System.Drawing.Image.FromFile("sample2.jpg"); sheet.PageSetup.LeftFooter = "Left Footer &G"; sheet.PageSetup.LeftFooterImage = System.Drawing.Image.FromFile("sample3.jpg"); sheet.PageSetup.RightFooter = "Right Footer &G"; sheet.PageSetup.RightFooterImage = System.Drawing.Image.FromFile("sample5.jpg"); sheet.PageSetup.RightHeader = "Right Header &G"; sheet.PageSetup.RightHeaderImage = System.Drawing.Image.FromFile("sample6.jpg"); workbook.SaveAs("PageSetup.xlsx"); workbook.Close(); } ``` ### Response N/A (This is a code example, not an API response) ``` -------------------------------- ### Get Section Page Setup Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.DocIO.DLS.IWSection.html Retrieves the page setup settings for the current section, including margins, paper size, and orientation. ```csharp WPageSetup PageSetup { get; } ``` -------------------------------- ### Initialize SfCarouselStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.SfCarouselStyleInfoStore.html Demonstrates the instantiation of the SfCarouselStyleInfoStore class using its default constructor. ```C# SfCarouselStyleInfoStore styleStore = new SfCarouselStyleInfoStore(); ``` -------------------------------- ### DragStartRect Property Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.CommandBar.html Gets the rectangle where the drag operation starts. ```APIDOC ## DragStartRect Property ### Description Gets the rectangle where the drag operation starts. ### Method GET ### Endpoint N/A (Property of a control) ### Parameters None ### Request Example ```csharp Rectangle dragRect = myCommandBar.DragStartRect; ``` ### Response #### Success Response (200) - **DragStartRect** (System.Drawing.Rectangle) - The starting rectangle for a drag operation. #### Response Example ```json { "DragStartRect": { "X": 0, "Y": 0, "Width": 0, "Height": 0 } } ``` ``` -------------------------------- ### Initialize ToolStripDropDownStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.ToolStripDropDownStyleInfoStore.html Demonstrates how to instantiate the ToolStripDropDownStyleInfoStore class using its default constructor or via serialization. ```csharp public ToolStripDropDownStyleInfoStore(); protected ToolStripDropDownStyleInfoStore(SerializationInfo info, StreamingContext context); ``` -------------------------------- ### Initialize GradientLabelStyleInfoStore Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.GradientLabelStyleInfoStore.html Demonstrates the constructors available for the GradientLabelStyleInfoStore class, including the default constructor and the serialization constructor. ```csharp public GradientLabelStyleInfoStore(); protected GradientLabelStyleInfoStore(SerializationInfo info, StreamingContext context); ``` -------------------------------- ### StartIndex Property Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Grouping.Table.html Gets or sets the value of Starting index. ```APIDOC ## StartIndex ### Description Gets or sets the value of Starting index. ### Method Property ### Endpoint N/A ### Parameters N/A ### Request Example N/A ### Response #### Success Response (200) - **StartIndex** (System.Int32) - The starting index value. #### Response Example N/A ``` -------------------------------- ### Get or Set Task Start Slack (Integer) Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.ProjIO.Task.html Gets or sets the amount of free time available at the beginning of the task. This is represented as an integer. ```csharp public int StartSlack { get; set; } ``` -------------------------------- ### Constructor: VisualStyleInfoStore() Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Styles.VisualStyleInfoStore.html Initializes a new instance of the VisualStyleInfoStore class. ```APIDOC ## Constructor: VisualStyleInfoStore() ### Description Initializes a new instance of the VisualStyleInfoStore class. ### Method Constructor ### Endpoint N/A (Class Initialization) ### Parameters None ### Request Example VisualStyleInfoStore store = new VisualStyleInfoStore(); ### Response - **Object** (VisualStyleInfoStore) - A new instance of the class. ``` -------------------------------- ### Create and Configure Charts in PowerPoint Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.OfficeChart.IOfficeChartDataLabels.html This example shows how to initialize a presentation, add a blank slide, insert a chart, populate it with tabular data, and define series values. It concludes by configuring data labels and saving the resulting file. ```csharp IPresentation presentation = Presentation.Create(); ISlide slide = presentation.Slides.Add(SlideLayoutType.Blank); IPresentationChart chart = slide.Charts.AddChart(100, 10, 500, 300); chart.ChartData.SetValue(1, 2, "Jan"); chart.ChartData.SetValue(1, 3, "Feb"); chart.ChartData.SetValue(1, 4, "March"); chart.ChartData.SetValue(2, 1, "2011"); chart.ChartData.SetValue(2, 2, "60"); chart.ChartData.SetValue(2, 3, "70"); chart.ChartData.SetValue(2, 4, "80"); chart.ChartData.SetValue(3, 1, "2009"); chart.ChartData.SetValue(3, 2, "80"); chart.ChartData.SetValue(3, 3, "70"); chart.ChartData.SetValue(3, 4, "60"); chart.ChartData.SetValue(4, 1, "2010"); chart.ChartData.SetValue(4, 2, "60"); chart.ChartData.SetValue(4, 3, "70"); chart.ChartData.SetValue(4, 4, "80"); IOfficeChartSerie serieJan = chart.Series.Add("Jan"); serieJan.Values = chart.ChartData[2, 2, 4, 2]; IOfficeChartSerie serieFeb = chart.Series.Add("Feb"); serieFeb.Values = chart.ChartData[2, 3, 4, 3]; IOfficeChartSerie serieMarch = chart.Series.Add("March"); serieMarch.Values = chart.ChartData[2, 4, 4, 4]; IOfficeChartDataLabels dataLabels = chart.Series[0].DataPoints.DefaultDataPoint.DataLabels; dataLabels.IsSeriesName = true; dataLabels.IsLegendKey = true; presentation.Save("Output.pptx"); presentation.Close(); ``` ```vbnet Dim presentation__1 As IPresentation = Presentation.Create() Dim slide As ISlide = presentation__1.Slides.Add(SlideLayoutType.Blank) Dim chart As IPresentationChart = slide.Charts.AddChart(100, 10, 500, 300) chart.ChartData.SetValue(1, 2, "Jan") chart.ChartData.SetValue(1, 3, "Feb") chart.ChartData.SetValue(1, 4, "March") chart.ChartData.SetValue(2, 1, "2011") chart.ChartData.SetValue(2, 2, "60") chart.ChartData.SetValue(2, 3, "70") chart.ChartData.SetValue(2, 4, "80") chart.ChartData.SetValue(3, 1, "2009") chart.ChartData.SetValue(3, 2, "80") chart.ChartData.SetValue(3, 3, "70") chart.ChartData.SetValue(3, 4, "60") chart.ChartData.SetValue(4, 1, "2010") chart.ChartData.SetValue(4, 2, "60") chart.ChartData.SetValue(4, 3, "70") chart.ChartData.SetValue(4, 4, "80") Dim serieJan As IOfficeChartSerie = chart.Series.Add("Jan") serieJan.Values = chart.ChartData(2, 2, 4, 2) Dim serieFeb As IOfficeChartSerie = chart.Series.Add("Feb") serieFeb.Values = chart.ChartData(2, 3, 4, 3) Dim serieMarch As IOfficeChartSerie = chart.Series.Add("March") serieMarch.Values = chart.ChartData(2, 4, 4, 4) Dim dataLabels As IOfficeChartDataLabels = chart.Series(0).DataPoints.DefaultDataPoint.DataLabels dataLabels.IsSeriesName = True dataLabels.IsLegendKey = True presentation__1.Save("Output.pptx") presentation__1.Close() ``` -------------------------------- ### Set Legend Start Label Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.TreeMap.LegendSettings.html Gets or sets the start label of the legend. This property is of type string and is used to define the text for the beginning of the legend. ```csharp public string StartLabel { get; set; } ``` -------------------------------- ### Get Default RatingControlVisualStyle in C# Source: https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.RatingControlVisualStyle.html Gets the default style value for the RatingControl. This provides access to a pre-defined visual style that can be used as a starting point or fallback. ```csharp public static RatingControlVisualStyle DefaultStyle { get; } ```