TrvActionInsertHyperlink.GetNormalStyleNo

<< Click to display table of contents >>

TrvActionInsertHyperlink.GetNormalStyleNo

Returns the index of non-hypertext style for the given style.

function GetNormalStyleNo(rve: TCustomRichViewEdit;

  StyleNo: Integer=-1): Integer;

If StyleNo=-1, the action returns the index of non-hypertext style for rve.CurTextStyleNo, otherwise for StyleNo.

The appearance of the returned style depends on rve.UseStyleTemplates.

If style templates are not used, the method returns the index of style (in rve.Style.TextStyles) having all properties of the specified style, except for the properties defined in ValidProperties. For these properties, values of properties of rve.Style.TextStyles[0] are used.

If style templates are used, the method returns the index of style (in rve.Style.TextStyles) having all properties of the specified style, by with link to a style template cleared.

If a style with the required properties already exists in rve.Style.TextStyles, its index is returned. Otherwise, a new style is created and its index is returned.

This method is used in TerminateHyperlink method, or when user entered an empty target in the dialog.

See also methods:

GetHyperlinkStyleNo