예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HSSFHyperlink"/> class.
 /// </summary>
 /// <param name="type">The type of hyperlink to Create.</param>
 public HSSFHyperlink(HyperlinkType type)
 {
     this.link_type = (int)type;
     record = new HyperlinkRecord();
     switch (type)
     {
         case HyperlinkType.URL:
         case HyperlinkType.EMAIL:
             record.CreateUrlLink();
             break;
         case HyperlinkType.FILE:
             record.CreateFileLink();
             break;
         case HyperlinkType.DOCUMENT:
             record.CreateDocumentLink();
             break;
     }
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HSSFHyperlink"/> class.
 /// </summary>
 /// <param name="record">The record.</param>
 public HSSFHyperlink(HyperlinkRecord record)
 {
     this.record = record;
 }
예제 #3
0
 public override Object Clone()
 {
     HyperlinkRecord rec = new HyperlinkRecord();
     rec._range = _range.Copy();
     rec._guid = _guid;
     
     rec._linkOpts = _linkOpts;
     rec._fileOpts = _fileOpts;
     rec._label = _label;
     rec._address = _address;
     rec._moniker = _moniker;
     rec._shortFilename = _shortFilename;
     rec._targetFrame = _targetFrame;
     rec._textMark = _textMark;
     rec._uninterpretedTail = _uninterpretedTail;
     return rec;
 }