You've already forked lazarus-ccr
fpspreadsheet: Add BiDiMode to TCell record helper.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4473 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -12,6 +12,7 @@ type
|
||||
TCellHelper = record helper for TCell
|
||||
private
|
||||
function GetBackgroundColor: TsColor;
|
||||
function GetBiDiMode: TsBiDiMode;
|
||||
function GetBorder: TsCellBorders;
|
||||
function GetBorderStyle(const ABorder: TsCellBorder): TsCellBorderStyle;
|
||||
function GetBorderStyles: TsCellBorderStyles;
|
||||
@ -28,6 +29,7 @@ type
|
||||
function GetVertAlignment: TsVertAlignment;
|
||||
function GetWordwrap: Boolean;
|
||||
procedure SetBackgroundColor(const AValue: TsColor);
|
||||
procedure SetBiDiMode(const AValue: TsBiDiMode);
|
||||
procedure SetBorder(const AValue: TsCellBorders);
|
||||
procedure SetBorderStyle(const ABorder: TsCellBorder; const AValue: TsCellBorderStyle);
|
||||
procedure SetBorderStyles(const AValue: TsCellBorderStyles);
|
||||
@ -50,6 +52,8 @@ type
|
||||
public
|
||||
property BackgroundColor: TsColor
|
||||
read GetBackgroundColor write SetBackgroundColor;
|
||||
property BiDiMode: TsBiDiMode
|
||||
read GetBiDiMode write SetBiDiMode;
|
||||
property Border: TsCellBorders
|
||||
read GetBorder write SetBorder;
|
||||
property BorderStyle[ABorder: TsCellBorder]: TsCellBorderStyle
|
||||
@ -89,6 +93,11 @@ begin
|
||||
Result := GetWorksheet.ReadBackgroundColor(@self);
|
||||
end;
|
||||
|
||||
function TCellHelper.GetBiDiMode: TsBiDiMode;
|
||||
begin
|
||||
Result := GetWorksheet.ReadBiDiMode(@self);
|
||||
end;
|
||||
|
||||
function TCellHelper.GetBorder: TsCellBorders;
|
||||
begin
|
||||
Result := GetWorksheet.ReadCellBorders(@self);
|
||||
@ -188,6 +197,11 @@ begin
|
||||
GetWorksheet.WriteBackgroundColor(@self, AValue);
|
||||
end;
|
||||
|
||||
procedure TCellHelper.SetBiDiMode(const AValue: TsBiDiMode);
|
||||
begin
|
||||
GetWorksheet.WriteBiDiMode(@self, AValue);
|
||||
end;
|
||||
|
||||
procedure TCellHelper.SetBorder(const AValue: TsCellBorders);
|
||||
begin
|
||||
GetWorksheet.WriteBorders(@self, AValue);
|
||||
|
Reference in New Issue
Block a user