Contents - Index - Previous - Next


SetTableAttrs method




Declaration
function SetTableAttrs(AAttrs: TProfDHTMLEditTableAttrs): Boolean;

Description

Changes the attributes of the currently selected table.

Returns True on success. Returns False on failure or if no table is currently selected.


Example

procedure TForm1.ToolButton1Click(Sender: TObject);
var
  ta: TProfDHTMLEditTableAttrs;
begin
  if ProfDHTMLEdit21.IsTableSelected then
  begin
    ta := TProfDHTMLEditTableAttrs.Create;
    ta.BorderSize := 2;
    ta.BgColor := clRed;
    ta.Align := haRight;
    ta.Width := 50;
    ProfDHTMLEdit21.SetTableAttrs(ta);
    ta.Free
  end
end;