From 066196b7a4fced12232c67f360d5d32e880ab0d7 Mon Sep 17 00:00:00 2001 From: VinothSF5015 Date: Sat, 6 Jun 2026 14:35:28 +0530 Subject: [PATCH 1/2] Content Added --- ...axis-title-position-using-manual-layout.md | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md new file mode 100644 index 0000000000..e95df43058 --- /dev/null +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md @@ -0,0 +1,95 @@ +--- +title: How to adjust the Y axis title position using manual layout? | Syncfusion +description: This page explains with an example how to adjust the Y axis title position using manual layout in Syncfusion .NET Excel library (XlsIO). +platform: document-processing +control: XlsIO +documentation: UG +--- + +# How to adjust the Y axis title position using manual layout? + +Manual layout allows you to precisely position chart elements by specifying their relative or absolute position. The `ManualLayout` property of the chart axis title provides options to adjust the title position programmatically using Syncfusion XlsIO. + +The following code example illustrates adjusting the Y axis (primary value axis) title position using manual layout. + +{% tabs %} +{% highlight c# tabtitle="C# [Cross-platform]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + // Instantiate the Excel application object + IApplication application = excelEngine.Excel; + + // Assign default application version + application.DefaultVersion = ExcelVersion.Xlsx; + + // Open an existing workbook + IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx")); + + // Access first worksheet from the workbook + IWorksheet worksheet = workbook.Worksheets[0]; + + // Access the chart in the worksheet + IChartShape chart = worksheet.Charts[0]; + + // Adjust the Y axis title position using manual layout + chart.PrimaryValueAxis.TitleArea.Layout.ManualLayout.Top = 0.15; + + // Save the modified workbook + workbook.SaveAs(Path.GetFullPath(@"Output/Output.xlsx")); +} +{% endhighlight %} + +{% highlight c# tabtitle="C# [Windows-specific]" %} +using (ExcelEngine excelEngine = new ExcelEngine()) +{ + // Instantiate the Excel application object + IApplication application = excelEngine.Excel; + + // Assign default application version + application.DefaultVersion = ExcelVersion.Xlsx; + + // Open an existing workbook + IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx"); + + // Access first worksheet from the workbook + IWorksheet worksheet = workbook.Worksheets[0]; + + // Access the chart in the worksheet + IChartShape chart = worksheet.Charts[0]; + + // Adjust the Y axis title position using manual layout + chart.PrimaryValueAxis.TitleArea.Layout.ManualLayout.Top = 0.15; + + // Save the modified workbook + workbook.SaveAs("Output.xlsx"); +} +{% endhighlight %} + +{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %} +Using excelEngine As New ExcelEngine() + ' Instantiate the Excel application object + Dim application As IApplication = excelEngine.Excel + + ' Assign default application version + application.DefaultVersion = ExcelVersion.Xlsx + + ' Open an existing workbook + Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx") + + ' Access first worksheet from the workbook + Dim worksheet As IWorksheet = workbook.Worksheets(0) + + ' Access the chart in the worksheet + Dim chart As IChartShape = worksheet.Charts(0) + + ' Adjust the Y axis title position using manual layout + chart.PrimaryValueAxis.TitleArea.Layout.ManualLayout.Top = 0.15 + + ' Save the modified workbook + workbook.SaveAs("Output.xlsx") +End Using +{% endhighlight %} +{% endtabs %} + + +A complete working example in C# is present on this GitHub page. \ No newline at end of file From eb9200a48c026cdb5b2adb5476a8b0504a038292 Mon Sep 17 00:00:00 2001 From: VinothSF5015 Date: Sat, 6 Jun 2026 14:42:01 +0530 Subject: [PATCH 2/2] Update how-to-adjust-the-y-axis-title-position-using-manual-layout.md --- ...to-adjust-the-y-axis-title-position-using-manual-layout.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md index e95df43058..ff99f495ec 100644 --- a/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md +++ b/Document-Processing/Excel/Excel-Library/NET/faqs/how-to-adjust-the-y-axis-title-position-using-manual-layout.md @@ -1,5 +1,5 @@ --- -title: How to adjust the Y axis title position using manual layout? | Syncfusion +title: Adjust Y axis title using manual layout | Syncfusion description: This page explains with an example how to adjust the Y axis title position using manual layout in Syncfusion .NET Excel library (XlsIO). platform: document-processing control: XlsIO @@ -92,4 +92,4 @@ End Using {% endtabs %} -A complete working example in C# is present on this GitHub page. \ No newline at end of file +A complete working example in C# is present on this GitHub page.