Documentazione HotXLS

IXLSHyperLinks Interface

Unità: lxHandle
Rappresenta the collection of hyperlinks for a Worksheet o range. Each hyperlink is represented by an IXLSHyperlink Interface

Using the Hyperlinks Collection

Usa the Hyperlinks proprietà to return the IXLSHyperlinks collection
L'esempio seguente deletes the hyperlinks on Worksheet one for a link that contains the word 'Microsoft' in the description
With Workbook.Sheets[1] do begin
   if Hyperlinks.Count > 0 then begin
      for i := Hyperlinks.Count downto 1 do begin
        if Pos('Microsoft', Hyperlinks[i].Description) > 0 then
           Hyperlinks[i].Delete;
      end;
   end;
end;
Usa the Add method to create a hyperlink e add it to the Hyperlinks collection
L'esempio seguente creates a new hyperlink for cell A8
With Workbook.Sheets[1] do begin
   Hyperlinks.Add(Range['A8','A8'], 'https://www.loslab.com/HotXLS.html');
end;
Usa the Delete method to remove hyperlinks from a Worksheet o range
L'esempio seguente deletes hyperlinks from Worksheet one
Workbook.Sheets[1].Hyperlinks.Delete;
L'esempio seguente deletes hyperlinks from range A1:F10 on Worksheet one
Workbook.Sheets[1].Range['A1','F10'].Hyperlinks.Delete;

Proprietà

Metodi