is this command not correct?

richedit1.text.ClearSelection;

i tried to use it in an onclick event procedure, but i got an error.

procedure TForm1.Button1Click(Sender: TObject);
begin
RichEdit1.ClearSelection;
end;

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.