Contents
- Index
- Previous
- Next
SetTableCellAttrs method
Declaration
function SetTableCellAttrs(AAttrs: TProfDHTMLEditTableCellAttrs): Boolean;
Description
Changes the attributes of the currently selected cell in a table.
Returns True on success. Returns False on failure or if no cell is currently selected.
Example
procedure TForm1.ToolButton1Click(Sender: TObject);
var
ca: TProfDHTMLEditTableCellAttrs;
begin
ca := TProfDHTMLEditTableCellAttrs.Create;
if ProfDHTMLEdit21.GetTableCellAttrs(ca) then
begin
ca.Align := haCenter;
ca.BgColor := clYellow;
ProfDHTMLEdit21.SetTableCellAttrs(ca)
end;
ca.Free
end;