[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.CellStyle

Class CellStyle

Namespace
GrapeCity.Documents.Drawing
Assembly
GcDocs.Imaging.dll

Describes the relative position, inner border, filling and layout of a table cell.

public class CellStyle : FrameStyle
Inheritance
object
CellStyle
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

CellStyle()

Initializes a new instance of the CellStyle class.

public CellStyle()

CellStyle(CellStyle)

Initializes a new instance of the CellStyle class.

public CellStyle(CellStyle source)

Parameters

source CellStyle

The source CellStyle to copy data from.

Properties

Background

Gets or sets a value indicating whether this cell is a background cell that appears behind the table grid, regular cells, and foreground cells. The default is false.

public bool Background { get; set; }

Property Value

bool

CreateTextLayout

Gets or sets a delegate creating a TextLayout from the specified CellStyle and a data object.

public Func<GcGraphics, CellStyle, object, TextLayout> CreateTextLayout { get; set; }

Property Value

System.Func<T1, T2, T3, TResult><GcGraphics, CellStyle, object, TextLayout>

CustomDraw

Gets or sets a delegate that draws custom content in a table cell (before drawing a TextLayout).

public Action<GcGraphics, TableCell> CustomDraw { get; set; }

Property Value

System.Action<T1, T2><GcGraphics, TableCell>

CustomPostDraw

Gets or sets a delegate that draws custom content in a table cell (after drawing a TextLayout).

public Action<GcGraphics, TableCell> CustomPostDraw { get; set; }

Property Value

System.Action<T1, T2><GcGraphics, TableCell>

FixedHeight

Gets or sets a value indicating whether the content area height is independent of text height. The default is false.

public bool FixedHeight { get; set; }

Property Value

bool

FixedWidth

Gets or sets a value indicating whether the content area width is independent of text width. The default is true.

public bool FixedWidth { get; set; }

Property Value

bool

Foreground

Gets or sets a value indicating whether this cell is a foreground cell that appears on top of the table grid, regular cells, and background cells. The default is false.

public bool Foreground { get; set; }

Property Value

bool

HorizontalPadding

Gets the sum of left and right padding of the content area, in graphic units.

public float HorizontalPadding { get; }

Property Value

float

MaxHeight

Gets or sets the maximum height of the content area, in graphic units.

null (the default value) means there is no limit on the maximum height.

The value is ignored if the FixedHeight property is set to true.

public float? MaxHeight { get; set; }

Property Value

float?

MaxWidth

Gets or sets the maximum width of the content area, in graphic units.

null (the default value) means there is no limit on the maximum width.

The value is ignored if the FixedWidth property is set to true.

public float? MaxWidth { get; set; }

Property Value

float?

PaddingAll

Gets or sets all padding values at once (left, top, right, bottom), in graphic units.

public float? PaddingAll { get; set; }

Property Value

float?

PaddingBottom

Gets or sets the bottom padding of the content area, in graphic units. The default is 0.

public float PaddingBottom { get; set; }

Property Value

float

PaddingLeft

Gets or sets the left padding of the content area, in graphic units. The default is 0.

public float PaddingLeft { get; set; }

Property Value

float

PaddingLeftRight

Gets or sets the left and right padding of the content area, in graphic units.

public float? PaddingLeftRight { get; set; }

Property Value

float?

PaddingRight

Gets or sets the right padding of the content area, in graphic units. The default is 0.

public float PaddingRight { get; set; }

Property Value

float

PaddingTop

Gets or sets the top padding of the content area, in graphic units. The default is 0.

public float PaddingTop { get; set; }

Property Value

float

PaddingTopBottom

Gets or sets the top and bottom padding of the content area, in graphic units.

public float? PaddingTopBottom { get; set; }

Property Value

float?

ParagraphAlignment

Gets or sets the value of ParagraphAlignment. The default is Near.

public ParagraphAlignment ParagraphAlignment { get; set; }

Property Value

ParagraphAlignment

Position

Gets or sets a value specifying whether a table cell appears behind or on top of other cells. The default is Normal.

public CellPosition Position { get; set; }

Property Value

CellPosition

RightToLeft

Gets or sets the value of RightToLeft. The default is false.

public bool RightToLeft { get; set; }

Property Value

bool

RotationAngle

Gets or sets the rotation angle of the content area (0, 90, 180 or 270 degrees). The default is 0.

public int RotationAngle { get; set; }

Property Value

int

TextAlignment

Gets or sets the value of TextAlignment. The default is Leading.

public TextAlignment TextAlignment { get; set; }

Property Value

TextAlignment

TextFormat

Gets or sets the proposed TextFormat for cell's TextLayout.

public TextFormat TextFormat { get; set; }

Property Value

TextFormat

VerticalPadding

Gets the sum of top and bottom padding of the content area, in graphic units.

public float VerticalPadding { get; }

Property Value

float