WPCubed Product Support

Insert a horizontal line - set thickness

Hi,

Currently I insert a horizontal line as follows:
If wpEmailEditor.Changing then
begin
wpEmailEditor.UndoBufferSaveTo(wpEmailEditor.ActivePar, wpuReplaceParTotal);
wpEmailEditor.InputNewObject(wpobjHorizontalLine);
wpEmailEditor.ChangeApplied;
end;

This inserts a thin line.
How can I increase the thickness of this line?

#1 ♥ 0
6.1k Views 2 users read 1 min
support

You can insert a TWPTextObject and change its property:

WPRichText1.InputNewObject(wpobjHorizontalLine).Height := 360;

#2 ♥ 0
support

with WPRichText1.InputNewObject(wpobjHorizontalLine) do
begin
MakeStyle(true);
Style.ASetColor(WPAT_FGColor, clRed);
Height := 360;
end;

#4 ♥ 0
This category is archived. No new posts are possible.