WordChartScope
OfficeIMO.Word
Edits one WordChart: its fluent methods and keywords, each returning this scope.
Inheritance
- object
- WordChartScope
Usage
Explore 18 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 16
- Method WordChartScope.AltText
- Method WordChartScope.AxisTitleFormat
- Method WordChartScope.BarDirection
- Method WordChartScope.BarGrouping
- Method WordChartScope.CountAxis
- Method WordChartScope.Data
- Method WordChartScope.Name
- Method WordChartScope.PaperStyle
- Method WordChartScope.RadialLayout
- Method WordChartScope.RoundedCorners
- Method WordChartScope.SecondaryValueAxis
- Method WordChartScope.Size
- Method WordChartScope.Title
- Method WordChartScope.WidthToPageContent
- Method WordChartScope.XAxisTitle
- Method WordChartScope.YAxisTitle
Accepted by parameters 2
- Method WordDocumentScope.Chart
- Method WordParagraphScope.Chart
Methods
public WordChartScope AltText(string? value) #Sets WordChart.AltText: Gets or sets alternative text persisted in the native Word drawing.
Parameters
- value string?
- The value.
public WordChartScope AxisTitleFormat(string fontFamily, OfficeLength fontSize, OfficeColor color) #Defines font formatting for axis titles.
Parameters
- fontFamily string
- Font family name.
- fontSize OfficeIMO.OfficeLength
- Font size in points.
- color OfficeIMO.OfficeColor
- Text color.
public WordChartScope BarDirection(WordChartBarDirection? value) #Sets WordChart.BarDirection: Gets or sets the bar direction (row or column) for bar charts.
Parameters
- value OfficeIMO.Word.WordChartBarDirection?
- The value.
public WordChartScope BarGrouping(WordChartBarGrouping? value) #Sets WordChart.BarGrouping: Gets or sets the bar grouping mode for bar charts.
Parameters
- value OfficeIMO.Word.WordChartBarGrouping?
- The value.
public WordChartScope CountAxis(uint? majorUnit = null) #Sets count axes to start at zero, use whole-number labels and a positive integral tick interval.
Parameters
- majorUnit uint? = null
- Optional distance between ticks in whole counts. When omitted, a readable integral interval is selected from the cached values.
public WordChartScope Data(OfficeChartType chartKind, OfficeChartData data) #Initializes or updates an editable native chart and its embedded worksheet from shared chart data. Existing chart and drawing titles, dimensions, and accessibility text are preserved. Use series render kinds and axis groups to describe combinations and secondary value axes.
Parameters
- chartKind OfficeIMO.OfficeChartType
- The default chart family for series without their own render kind.
- data OfficeIMO.Drawing.OfficeChartData
- Categories and series, including supported point and marker styles.
public WordChartScope Name(string? value) #Sets WordChart.Name: Gets or sets the native drawing name without changing chart data.
Parameters
- value string?
- The value.
public WordChartScope PaperStyle(bool percentageLabels = false, OfficeColor? titleColor = null) #Uses percentage-only pie labels or count-only bar labels, and removes the chart background and frame.
Parameters
- percentageLabels bool = false
- True for percentage-only pie labels; false for numeric count labels.
- titleColor OfficeIMO.OfficeColor? = null
- Text color for the chart title.
public WordChartScope RadialLayout(OfficeChartRadialLayout layout) #Sets geometry for an existing native two-dimensional pie or doughnut chart.
Parameters
- layout OfficeIMO.Drawing.OfficeChartRadialLayout
- The value.
public WordChartScope RoundedCorners(bool value = true) #Sets WordChart.RoundedCorners: Gets or sets whether the chart frame uses rounded corners.
Parameters
- value bool = true
- The value; true when omitted.
public WordChartScope SecondaryValueAxis(OfficeChartValueAxisLayout layout) #Sets independent bounds, tick spacing and appearance, and number format on the existing secondary value axis.
Parameters
- layout OfficeIMO.Drawing.OfficeChartValueAxisLayout
- The value.
public WordChartScope Size(OfficeLength width, OfficeLength? height = null) #Sets the chart frame width and, when supplied, its height.
Parameters
- width OfficeIMO.OfficeLength
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
public WordChartScope Title(string title) #Set the title of the chart
Parameters
- title string
- The value.
public WordChartScope WidthToPageContent(double fraction = 1, OfficeLength? height = null) #Fits chart width to its owning section or cell, optionally adjusting its height.
Parameters
- fraction double = 1
- The value.
- height OfficeIMO.OfficeLength? = null
- The value.
public WordChartScope XAxisTitle(string title) #Sets the title displayed on the X axis.
Parameters
- title string
- Axis title text.
public WordChartScope YAxisTitle(string title) #Sets the title displayed on the Y axis.
Parameters
- title string
- Axis title text.