OdfShape
OfficeIMO.OpenDocument
Shared XML-backed shape properties for OpenDocument presentations and drawings.
Inheritance
- object
- OdfShape
Derived Types
Inherited Methods
Properties
public string? XmlId { get; set; } #XML identifier used by animation and cross-reference targets. Assigned values are unique across the main XML parts. Connector and animation references in the same page or master follow an identifier change.
public OfficeFillRule FillRule { get; set; } #Rule used to fill overlapping contours; ODF follows SVG's nonzero default.
public OdfColor? StrokeColor { get; set; } #Shape stroke color, including dashed strokes.
public virtual OdfRect Bounds { get; set; } #Position and size for shapes exposing SVG bounds.
public string? FillGradientName { get; set; } #Effective named gradient when the fill mode is gradient. Setting null explicitly disables the fill.
public int? GradientStepCount { get; set; } #Inherited gradient step count: zero selects automatic interpolation, three or more select fixed bands. Null removes the local override.
public string? StrokeStartMarkerName { get; set; } #Effective start marker. Setting null explicitly disables it, including an inherited marker.
public string? StrokeEndMarkerName { get; set; } #Effective end marker. Setting null explicitly disables it, including an inherited marker.
public OdfLength? StrokeStartMarkerWidth { get; set; } #Inherited absolute start-marker width; zero suppresses painting. Null removes the local override.
public OdfLength? StrokeEndMarkerWidth { get; set; } #Inherited absolute end-marker width; zero suppresses painting. Null removes the local override.
public bool? StrokeStartMarkerCentered { get; set; } #Whether the start marker is centered on its endpoint. Null removes the local override.
public bool? StrokeEndMarkerCentered { get; set; } #Whether the end marker is centered on its endpoint. Null removes the local override.
public double? FillOpacity { get; set; } #Uniform fill opacity from zero to one, including inherited values. Null means no declared value.
public double? StrokeOpacity { get; set; } #Stroke opacity from zero to one, including inherited values. Null means no declared value; assignment removes the local override.
public double? ImageOpacity { get; set; } #Image-pixel opacity from zero to one, including inherited values. This is separate from the frame's fill opacity.
public OfficeStrokeLineCap? StrokeLineCap { get; set; } #Inherited stroke cap; null removes the local override and may restore an inherited value.
public OfficeStrokeLineJoin? StrokeLineJoin { get; set; } #Inherited miter, round, or bevel join; null removes the local override.
public string? StrokeDashName { get; set; } #Effective named dash pattern when the stroke is dashed. Setting null explicitly selects a solid stroke.
public OdfTextFitMode? TextFitMode { get; set; } #Inherited native text fitting; null removes both local fitting declarations.
Exceptions
NotSupportedException– The effective native pair contains unknown, legacy or conflicting active values.ArgumentOutOfRangeException– The assigned mode is not defined.
public OfficeTextAreaAlignment? TextAreaAlignment { get; set; } #Inherited horizontal text-area placement; null removes the local override.
Exceptions
NotSupportedException– The effective native value is outside the supported alignment values.
public OdfTextAreaVerticalAlignment? TextVerticalAlignment { get; set; } #Inherited native vertical text-area placement; null removes the local override.
Exceptions
NotSupportedException– The effective native value is outside the supported alignment values.
public bool? WrapText { get; set; } #Inherited native wrapping declaration; null removes the local override.
Exceptions
NotSupportedException– The effective native wrapping declaration is unknown.
public OdfInsets? TextPadding { get; set; } #Inherited top, right, bottom, and left text insets; null removes all local padding declarations.
Exceptions
ArgumentException– An assigned side is not a finite nonnegative absolute ODF schema length.
public bool? AutoGrowHeight { get; set; } #Inherited native text-box height growth; null removes the local declaration.
Exceptions
NotSupportedException– The effective declaration is not an ODF boolean.
public bool? AutoGrowWidth { get; set; } #Inherited native text-box width growth; null removes the local declaration.
Exceptions
NotSupportedException– The effective declaration is not an ODF boolean.
public OdfLength? TextBoxMinimumHeight { get; set; } #Instance minimum height on the direct text-box container; null removes the attribute.
public OdfLength? TextBoxMinimumWidth { get; set; } #Instance minimum width on the direct text-box container; null removes the attribute.
public OdfLength? TextBoxMaximumHeight { get; set; } #Instance maximum height on the direct text-box container; null removes the attribute.
public OdfLength? TextBoxMaximumWidth { get; set; } #Instance maximum width on the direct text-box container; null removes the attribute.