API Reference
Class
HeaderFooterBuilder
Fluent builder for worksheet header and footer with optional images.
Inheritance
- Object
- HeaderFooterBuilder
Constructors
public HeaderFooterBuilder() #Methods
public HeaderFooterBuilder AlignWithMargins(Boolean value = true) #Returns:
HeaderFooterBuilderAligns header/footer with page margins.
Parameters
- value System.Boolean = true
public HeaderFooterBuilder Center(String text) #Returns:
HeaderFooterBuilderSets center header text.
Parameters
- text System.String
public HeaderFooterBuilder CenterImage(Byte[] bytes, String contentType = "image/png", Nullable<Double> widthPoints = null, Nullable<Double> heightPoints = null) #Returns:
HeaderFooterBuilderAdds a centered header image.
Parameters
- bytes System.Byte[]
- contentType System.String = "image/png"
- widthPoints System.Nullable{System.Double} = null
- heightPoints System.Nullable{System.Double} = null
public HeaderFooterBuilder CenterImageUrl(String url, Nullable<Double> widthPoints = null, Nullable<Double> heightPoints = null) #Returns:
HeaderFooterBuilderAdds a centered header image from URL (downloaded on apply).
Parameters
- url System.String
- widthPoints System.Nullable{System.Double} = null
- heightPoints System.Nullable{System.Double} = null
public HeaderFooterBuilder DifferentFirstPage(Boolean value = true) #Returns:
HeaderFooterBuilderUses a different header and footer on the first page.
Parameters
- value System.Boolean = true
public HeaderFooterBuilder DifferentOddEven(Boolean value = true) #Returns:
HeaderFooterBuilderUses different headers/footers for odd and even pages.
Parameters
- value System.Boolean = true
public HeaderFooterBuilder Left(String text) #Returns:
HeaderFooterBuilderSets left header text.
Parameters
- text System.String
public HeaderFooterBuilder LeftImage(Byte[] bytes, String contentType = "image/png", Nullable<Double> widthPoints = null, Nullable<Double> heightPoints = null) #Returns:
HeaderFooterBuilderAdds a left header image.
Parameters
- bytes System.Byte[]
- contentType System.String = "image/png"
- widthPoints System.Nullable{System.Double} = null
- heightPoints System.Nullable{System.Double} = null
public HeaderFooterBuilder LeftImageUrl(String url, Nullable<Double> widthPoints = null, Nullable<Double> heightPoints = null) #Returns:
HeaderFooterBuilderAdds a left header image from URL (downloaded on apply).
Parameters
- url System.String
- Direct URL to an image (PNG/JPEG/GIF/BMP).
- widthPoints System.Nullable{System.Double} = null
- Optional width in points; inferred from image when null.
- heightPoints System.Nullable{System.Double} = null
- Optional height in points; inferred from image when null.
public HeaderFooterBuilder Right(String text) #Returns:
HeaderFooterBuilderSets right header text.
Parameters
- text System.String
public HeaderFooterBuilder RightImage(Byte[] bytes, String contentType = "image/png", Nullable<Double> widthPoints = null, Nullable<Double> heightPoints = null) #Returns:
HeaderFooterBuilderAdds a right header image.
Parameters
- bytes System.Byte[]
- contentType System.String = "image/png"
- widthPoints System.Nullable{System.Double} = null
- heightPoints System.Nullable{System.Double} = null
public HeaderFooterBuilder RightImageUrl(String url, Nullable<Double> widthPoints = null, Nullable<Double> heightPoints = null) #Returns:
HeaderFooterBuilderAdds a right header image from URL (downloaded on apply).
Parameters
- url System.String
- widthPoints System.Nullable{System.Double} = null
- heightPoints System.Nullable{System.Double} = null
public HeaderFooterBuilder ScaleWithDocument(Boolean value = true) #Returns:
HeaderFooterBuilderScales header/footer with document scaling.
Parameters
- value System.Boolean = true
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object