TCustomRichViewEdit.SetBackgroundPropertyEd

<< Click to display table of contents >>

TCustomRichViewEdit.SetBackgroundPropertyEd

An editing-style method for changing BackgroundProperties.

procedure SetBackgroundPropertyEd(Prop: TRVBackgroundPropertyId;
  Value: Integer; AutoReformat: Boolean);

(introduced in version 24)

Parameters:

Prop identifies a property of BackgroundProperties.

Prop new value for this property.

If AutoReformat=True, Change is called. Normally, this method is called with AutoReformat=True if you change a single property. If you call this method together with other methods in a group, this parameter must be False, and you must call Change yourself.

 

Method type: editstyle editing-style (unlike direct assignment to sub-properties of BackgroundProperties).

 

Example:

if MyRichViewEdit.CanChange then

begin

  MyRichViewEdit.BeginUndoGroup(rvutBackground);
  MyRichViewEdit.SetUndoGroupMode(True);

  MyRichViewEdit.SetBackgroundPropertyEd(rvbpidVisible, Ord(True), 

    False);

  MyRichViewEdit.SetBackgroundImageEd(Image1.Picture.Graphic, False);

  MyRichViewEdit.SetUndoGroupMode(False);
  MyRichViewEdit.Invalidate;
  MyRichViewEdit.Change;

end;

See also methods:

SetIntPropertyEd, SetStrPropertyEd, SetFloatPropertyEd.