API Reference
OdgBackground
XML-backed background paint in a page or master's drawing-page style chain.
Inheritance
- Object
- OdgBackground
Remarks
Page declarations override master paint except for native no-fill, which retains the master. Master edits affect all referencing pages. Referenced gradient definitions and image bytes remain shared.
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OdgPage.Background
- Property OdgPage.MasterBackground
Methods
public Byte[] GetBitmapBytes() #Byte[]Returns embedded bitmap source bytes without fetching linked content.
public Void SetBitmap(Byte[] data, String fileName = "background.png") #VoidEmbeds a supported raster and selects stretched bitmap fill without changing opacity or paint area.
Parameters
- data System.Byte[]
- fileName System.String = "background.png"
public Void UseNoFill() #VoidSelects native no-fill, retaining inactive declarations and resource definitions.
Inherited Methods
Properties
public String FillMode { get; } #Resolved native fill token in this owner's style chain, or null when absent. It does not include the other owner's paint.
public Nullable<OdfColor> FillColor { get; set; } #Resolved solid fill color, or null for another fill mode. Setting null selects native no-fill.
public String FillGradientName { get; set; } #Resolved gradient binding, or null for another fill mode. Setting null selects native no-fill.
public Nullable<Double> FillOpacity { get; set; } #Uniform opacity from zero to one in this owner's style chain. Null removes the local override.
public Nullable<Int32> GradientStepCount { get; set; } #Resolved native gradient band count. Zero means automatic; three or more means fixed bands. Null removes the local override.
public String FillImageName { get; } #Resolved bitmap definition name, or null for another fill mode.