C# Класс OfficeOpenXml.Drawing.ExcelDrawing

Base class for twoanchored drawings. Drawings are Charts, shapes and Pictures.
Наследование: XmlHelper, IDisposable
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_drawings OfficeOpenXml.Drawing.ExcelDrawings
_id int
_topNode System.Xml.XmlNode

Private Properties

Свойство Тип Описание
ExcelDrawing System
ExcelDrawing System
GetColumnWidth decimal
GetDrawing ExcelDrawing
GetPixelHeight int
GetPixelLeft int
GetPixelTop int
GetPixelWidth int
GetRowWidth double
GetTextAchoringEnum eTextAnchoringType
GetTextAchoringText string
GetTextVerticalEnum eTextVerticalType
GetTextVerticalText string
SetPixelHeight void
SetPixelHeight void
SetPixelLeft void
SetPixelTop void
SetPixelWidth void
SetPixelWidth void

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

Метод Описание
SetPosition ( int PixelTop, int PixelLeft ) : void

Set the top left corner of a drawing. Note that resizing columns / rows after using this function will effect the position of the drawing

SetPosition ( int Row, int RowOffsetPixels, int Column, int ColumnOffsetPixels ) : void

Set the top left corner of a drawing. Note that resizing columns / rows after using this function will effect the position of the drawing

SetSize ( int Percent ) : void

Set size in Percent Note that resizing columns / rows after using this function will effect the size of the drawing

SetSize ( int PixelWidth, int PixelHeight ) : void

Set size in pixels Note that resizing columns / rows after using this function will effect the size of the drawing

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

Метод Описание
ExcelDrawing ( OfficeOpenXml.Drawing.ExcelDrawings drawings, XmlNode node, string nameXPath ) : System
ExcelDrawing ( XmlNamespaceManager nameSpaceManager, XmlNode node ) : System
GetColumnWidth ( int col ) : decimal
GetDrawing ( OfficeOpenXml.Drawing.ExcelDrawings drawings, XmlNode node ) : ExcelDrawing

Add new Drawing types here

GetPixelHeight ( ) : int
GetPixelLeft ( ) : int
GetPixelTop ( ) : int
GetPixelWidth ( ) : int
GetRowWidth ( int row ) : double
GetTextAchoringEnum ( string text ) : eTextAnchoringType
GetTextAchoringText ( eTextAnchoringType value ) : string
GetTextVerticalEnum ( string text ) : eTextVerticalType
GetTextVerticalText ( eTextVerticalType value ) : string
SetPixelHeight ( int pixels ) : void
SetPixelHeight ( int pixels, float dpi ) : void
SetPixelLeft ( int pixels ) : void
SetPixelTop ( int pixels ) : void
SetPixelWidth ( int pixels ) : void
SetPixelWidth ( int pixels, float dpi ) : void

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

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

Set the top left corner of a drawing. Note that resizing columns / rows after using this function will effect the position of the drawing
public SetPosition ( int PixelTop, int PixelLeft ) : void
PixelTop int Top pixel
PixelLeft int Left pixel
Результат void

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

Set the top left corner of a drawing. Note that resizing columns / rows after using this function will effect the position of the drawing
public SetPosition ( int Row, int RowOffsetPixels, int Column, int ColumnOffsetPixels ) : void
Row int Start row
RowOffsetPixels int Offset in pixels
Column int Start Column
ColumnOffsetPixels int Offset in pixels
Результат void

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

Set size in Percent Note that resizing columns / rows after using this function will effect the size of the drawing
public SetSize ( int Percent ) : void
Percent int
Результат void

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

Set size in pixels Note that resizing columns / rows after using this function will effect the size of the drawing
public SetSize ( int PixelWidth, int PixelHeight ) : void
PixelWidth int Width in pixels
PixelHeight int Height in pixels
Результат void

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

_drawings защищенное свойство

protected ExcelDrawings,OfficeOpenXml.Drawing _drawings
Результат OfficeOpenXml.Drawing.ExcelDrawings

_id защищенное свойство

protected int _id
Результат int

_topNode защищенное свойство

protected XmlNode,System.Xml _topNode
Результат System.Xml.XmlNode