C# Класс OfficeOpenXml.ExcelHeaderFooterText

Print header and footer
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CenteredText string
LeftAlignedText string
RightAlignedText string

Открытые методы

Метод Описание
InsertPicture ( FileInfo PictureFile, PictureAlignment Alignment ) : OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingPicture

Inserts a picture at the end of the text in the header or footer

InsertPicture ( Image Picture, PictureAlignment Alignment ) : OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingPicture

Inserts a picture at the end of the text in the header or footer

Приватные методы

Метод Описание
AddImage ( Image Picture, string id, ExcelPackage ii ) : OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingPicture
ExcelHeaderFooterText ( XmlNode TextNode, OfficeOpenXml.ExcelWorksheet ws, string hf ) : System
SetText ( string code, string text ) : void
ValidateImage ( PictureAlignment Alignment ) : string

Описание методов

InsertPicture() публичный Метод

Inserts a picture at the end of the text in the header or footer
public InsertPicture ( FileInfo PictureFile, PictureAlignment Alignment ) : OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingPicture
PictureFile System.IO.FileInfo The image object containing the Picture
Alignment PictureAlignment Alignment. The image object will be inserted at the end of the Text.
Результат OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingPicture

InsertPicture() публичный Метод

Inserts a picture at the end of the text in the header or footer
public InsertPicture ( Image Picture, PictureAlignment Alignment ) : OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingPicture
Picture Image The image object containing the Picture
Alignment PictureAlignment Alignment. The image object will be inserted at the end of the Text.
Результат OfficeOpenXml.Drawing.Vml.ExcelVmlDrawingPicture

Описание свойств

CenteredText публичное свойство

Get/set the text to appear in the center of the header (or footer) on the worksheet.
public string CenteredText
Результат string

LeftAlignedText публичное свойство

Get/set the text to appear on the left hand side of the header (or footer) on the worksheet.
public string LeftAlignedText
Результат string

RightAlignedText публичное свойство

Get/set the text to appear on the right hand side of the header (or footer) on the worksheet.
public string RightAlignedText
Результат string