private void AddValuesetListTable() { string[] headers = new string[] { "Name", "OID", "URL" }; Table t = this.tables.AddTable("Value Sets", headers); foreach (ValueSet cValueSet in this.appendixValueSets.Keys.OrderBy(y => y.Name)) { string valueSetIdentifier = cValueSet.GetIdentifier(this.igTypePlugin); string cAnchor = Helper.GetCleanName(cValueSet.Name, 39); OpenXmlElement urlRun = DocHelper.CreateRun("N/A"); if (!string.IsNullOrEmpty(cValueSet.Source)) { urlRun = this.hyperlinkTracker.CreateUrlHyperlink(this.mainPart, cValueSet.Source, cValueSet.Source, Properties.Settings.Default.TableLinkStyle); } TableRow newRow = new TableRow( new TableCell( new Paragraph( new ParagraphProperties( new ParagraphStyleId() { Val = Properties.Settings.Default.TableContentStyle }), this.hyperlinkTracker.CreateHyperlink(cValueSet.Name, cAnchor, Properties.Settings.Default.TableLinkStyle))), new TableCell( new Paragraph( new ParagraphProperties( new ParagraphStyleId() { Val = Properties.Settings.Default.TableContentStyle }), DocHelper.CreateRun(valueSetIdentifier))), new TableCell( new Paragraph( new ParagraphProperties( new ParagraphStyleId() { Val = Properties.Settings.Default.TableContentStyle }), urlRun))); t.Append(newRow); } }
public string GetValueSetBookmark(ValueSet valueSet) { return(Helper.GetCleanName(valueSet.Name, 39)); }